fix(Scripts/BRD): Mobs in Manufactory should attack on Golem Lord Arg… (#7794)

- Closes #3077
This commit is contained in:
UltraNix
2021-09-13 16:09:40 +02:00
committed by GitHub
parent 177cc213f2
commit 15b346163d
5 changed files with 209 additions and 39 deletions
@@ -156,6 +156,11 @@ public:
}
};
enum UldamanStonedEnum
{
MAP_ULDAMAN = 70
};
class spell_uldaman_stoned : public SpellScriptLoader
{
public:
@@ -167,7 +172,7 @@ public:
bool Load() override
{
return GetUnitOwner()->GetTypeId() == TYPEID_UNIT;
return GetUnitOwner()->GetTypeId() == TYPEID_UNIT && GetUnitOwner()->GetMapId() == MAP_ULDAMAN;
}
void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)