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:
+5
@@ -659,6 +659,11 @@ public:
|
|||||||
m_uiTargetGUID = 0;
|
m_uiTargetGUID = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CanAIAttack(Unit const* victim) const
|
||||||
|
{
|
||||||
|
return victim->GetTypeId() == TYPEID_PLAYER;
|
||||||
|
}
|
||||||
|
|
||||||
void EnterCombat(Unit* who)
|
void EnterCombat(Unit* who)
|
||||||
{
|
{
|
||||||
m_uiTargetGUID = who->GetGUID();
|
m_uiTargetGUID = who->GetGUID();
|
||||||
|
|||||||
Reference in New Issue
Block a user