aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
-rw-r--r--src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp9
-rw-r--r--src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp1
-rw-r--r--src/server/scripts/EasternKingdoms/ZulGurub/boss_marli.cpp26
3 files changed, 19 insertions, 17 deletions
diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
index 13ac778fb80..7aeb730893d 100644
--- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
+++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
@@ -1080,6 +1080,7 @@ enum GiftOfTheHarvester
SPELL_GHOST_TRANSFORM = 52505
};
+// 52479 - Gift of the Harvester
class spell_gift_of_the_harvester : public SpellScript
{
PrepareSpellScript(spell_gift_of_the_harvester);
@@ -1087,10 +1088,10 @@ class spell_gift_of_the_harvester : public SpellScript
bool Validate(SpellInfo const* /*spell*/) override
{
return ValidateSpellInfo(
- {
- SPELL_GHOUL_TRANFORM,
- SPELL_GHOST_TRANSFORM
- });
+ {
+ SPELL_GHOUL_TRANFORM,
+ SPELL_GHOST_TRANSFORM
+ });
}
void HandleScriptEffect(SpellEffIndex /*effIndex*/)
diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp
index e7b185376c5..7fce427c775 100644
--- a/src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp
+++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp
@@ -1002,6 +1002,7 @@ class boss_koragg : public CreatureScript
}
};
+// 43522 - Unstable Affliction
class spell_hexlord_unstable_affliction : public SpellScriptLoader
{
public:
diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/boss_marli.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/boss_marli.cpp
index b67e30e454f..f319766306e 100644
--- a/src/server/scripts/EasternKingdoms/ZulGurub/boss_marli.cpp
+++ b/src/server/scripts/EasternKingdoms/ZulGurub/boss_marli.cpp
@@ -305,21 +305,21 @@ class npc_spawn_of_marli : public CreatureScript
}
};
+// 24083 - Hatch Eggs
class spell_hatch_spiders : public SpellScript
{
- PrepareSpellScript(spell_hatch_spiders);
-
- void HandleObjectAreaTargetSelect(std::list<WorldObject*>& targets)
- {
- targets.sort(Trinity::ObjectDistanceOrderPred(GetCaster()));
- targets.resize(GetSpellInfo()->MaxAffectedTargets);
- }
-
- void Register() override
- {
- OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_hatch_spiders::HandleObjectAreaTargetSelect, EFFECT_0, TARGET_GAMEOBJECT_DEST_AREA);
- }
-
+ PrepareSpellScript(spell_hatch_spiders);
+
+ void HandleObjectAreaTargetSelect(std::list<WorldObject*>& targets)
+ {
+ targets.sort(Trinity::ObjectDistanceOrderPred(GetCaster()));
+ targets.resize(GetSpellInfo()->MaxAffectedTargets);
+ }
+
+ void Register() override
+ {
+ OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_hatch_spiders::HandleObjectAreaTargetSelect, EFFECT_0, TARGET_GAMEOBJECT_DEST_AREA);
+ }
};
void AddSC_boss_marli()