mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
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:
@@ -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