fix(Scripts/SunwellPlateau): Remove Sunwell Radiance from mobs (#21312)

This commit is contained in:
Andrew 2025-02-03 08:54:19 -03:00 committed by GitHub
parent cce6f7513e
commit e75505d071
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 13 deletions

View File

@ -0,0 +1,2 @@
--
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 25485) AND (`source_type` = 0) AND (`id` IN (0));

View File

@ -96,14 +96,6 @@ public:
if (GameObject* gobj = GetGameObject(DATA_ICEBARRIER))
gobj->SendUpdateToPlayer(player);
}
void OnCreatureCreate(Creature* creature) override
{
if (creature->GetSpawnId() > 0 || !creature->GetOwnerGUID().IsPlayer())
creature->CastSpell(creature, SPELL_SUNWELL_RADIANCE, true);
InstanceScript::OnCreatureCreate(creature);
}
};
InstanceScript* GetInstanceScript(InstanceMap* map) const override

View File

@ -106,11 +106,6 @@ enum GameObjectIds
GO_ORB_OF_THE_BLUE_DRAGONFLIGHT4 = 188116
};
enum SpellIds
{
SPELL_SUNWELL_RADIANCE = 45769,
};
template <class AI, class T>
inline AI* GetSunwellPlateauAI(T* obj)
{