mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[10731] Remove redundant isAlive-check, thanks LordJZ for notice
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
cfbfae7f40
commit
bd48d3cdc9
2 changed files with 1 additions and 4 deletions
|
|
@ -5380,9 +5380,6 @@ SpellCastResult Spell::CheckPetCast(Unit* target)
|
|||
|
||||
if(_target) //for target dead/target not valid
|
||||
{
|
||||
if(!_target->isAlive())
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
|
||||
if (!_target->isTargetableForAttack())
|
||||
return SPELL_FAILED_BAD_TARGETS; // guessed error
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10730"
|
||||
#define REVISION_NR "10731"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue