Core/Scripts: Fix Anub'arak spikes in Trial of the Crusader now they only attack players. Thanks to Warpten who brought the Idea and thanks to Nayd :)

This commit is contained in:
AliveShiro
2012-05-28 19:18:03 +02:00
parent a8f2c7ccab
commit 34a1dd763b

View File

@@ -659,6 +659,11 @@ public:
m_uiTargetGUID = 0;
}
bool CanAIAttack(Unit const* victim) const
{
return victim->GetTypeId() == TYPEID_PLAYER;
}
void EnterCombat(Unit* who)
{
m_uiTargetGUID = who->GetGUID();