*Ahn'Khalet: Partial Herald Volazj script, by Tartalo
*Check for null pointers in SelectTargetHelper, thanks to Spp *Remove rank aura from last battle (possibly there due to crash), by Spp --HG-- branch : trunk
This commit is contained in:
1 parent
6c90f1f89a
commit
771341992f
6 files changed
+57
-29
No files matched your search
+2
-2
@@ -83,10 +83,10 @@ bool UnitAI::DoSpellAttackIfReady(uint32 spell)
|
||||
|
||||
inline bool SelectTargetHelper(const Unit * me, const Unit * target, const bool &playerOnly, const float &dist, const int32 &aura)
|
||||
{
|
||||
if(playerOnly && target->GetTypeId() != TYPEID_PLAYER)
|
||||
if(playerOnly && (!target || target->GetTypeId() != TYPEID_PLAYER))
|
||||
return false;
|
||||
|
||||
if(dist && !me->IsWithinCombatRange(target, dist))
|
||||
if(dist && (!me || !target || !me->IsWithinCombatRange(target, dist)))
|
||||
return false;
|
||||
|
||||
if(aura)
|
||||
|
||||
Reference in new issue
Block a user