mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-15 05:25:08 +00:00
fix(Scripts/SunwellPlateau): Remove Sunwell Radiance from mobs (#21312)
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
--
|
||||||
|
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 25485) AND (`source_type` = 0) AND (`id` IN (0));
|
||||||
@@ -96,14 +96,6 @@ public:
|
|||||||
if (GameObject* gobj = GetGameObject(DATA_ICEBARRIER))
|
if (GameObject* gobj = GetGameObject(DATA_ICEBARRIER))
|
||||||
gobj->SendUpdateToPlayer(player);
|
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
|
InstanceScript* GetInstanceScript(InstanceMap* map) const override
|
||||||
|
|||||||
@@ -106,11 +106,6 @@ enum GameObjectIds
|
|||||||
GO_ORB_OF_THE_BLUE_DRAGONFLIGHT4 = 188116
|
GO_ORB_OF_THE_BLUE_DRAGONFLIGHT4 = 188116
|
||||||
};
|
};
|
||||||
|
|
||||||
enum SpellIds
|
|
||||||
{
|
|
||||||
SPELL_SUNWELL_RADIANCE = 45769,
|
|
||||||
};
|
|
||||||
|
|
||||||
template <class AI, class T>
|
template <class AI, class T>
|
||||||
inline AI* GetSunwellPlateauAI(T* obj)
|
inline AI* GetSunwellPlateauAI(T* obj)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user