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:
1 parent
a8f2c7ccab
commit
34a1dd763b
1 file changed
+5
+5
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user