[10731] Remove redundant isAlive-check, thanks LordJZ for notice

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-11-17 19:09:14 +01:00
parent cfbfae7f40
commit bd48d3cdc9
2 changed files with 1 additions and 4 deletions

View file

@ -5380,9 +5380,6 @@ SpellCastResult Spell::CheckPetCast(Unit* target)
if(_target) //for target dead/target not valid if(_target) //for target dead/target not valid
{ {
if(!_target->isAlive())
return SPELL_FAILED_BAD_TARGETS;
if (!_target->isTargetableForAttack()) if (!_target->isTargetableForAttack())
return SPELL_FAILED_BAD_TARGETS; // guessed error return SPELL_FAILED_BAD_TARGETS; // guessed error

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10730" #define REVISION_NR "10731"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__