diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-01-09 13:43:45 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-09 13:43:45 +0100 |
commit | 4d3439b02414649f638285616fcae896e51664ce (patch) | |
tree | 3b7f8b71a164557af1ef9f16b8e3eb96ba2cf6c3 /src | |
parent | 30f232d5dbf6fabbec88efb98585857f16ee4d13 (diff) |
Scripts/Spells: Fixed shaman Healing Rain target limit
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_shaman.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp index 4f720e74af9..87193cc47f3 100644 --- a/src/server/scripts/Spells/spell_shaman.cpp +++ b/src/server/scripts/Spells/spell_shaman.cpp @@ -608,6 +608,22 @@ class spell_sha_healing_rain : public SpellScript } }; +// 73921 - Healing Rain +class spell_sha_healing_rain_target_limit : public SpellScript +{ + PrepareSpellScript(spell_sha_healing_rain_target_limit); + + void SelectTargets(std::list<WorldObject*>& targets) + { + Trinity::SelectRandomInjuredTargets(targets, 6, true); + } + + void Register() override + { + OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_sha_healing_rain_target_limit::SelectTargets, EFFECT_0, TARGET_UNIT_DEST_AREA_ALLY); + } +}; + // 52042 - Healing Stream Totem class spell_sha_healing_stream_totem_heal : public SpellScript { @@ -1389,6 +1405,7 @@ void AddSC_shaman_spell_scripts() RegisterSpellScript(spell_sha_flametongue_weapon); RegisterAuraScript(spell_sha_flametongue_weapon_aura); RegisterSpellAndAuraScriptPair(spell_sha_healing_rain, spell_sha_healing_rain_aura); + RegisterSpellScript(spell_sha_healing_rain_target_limit); RegisterSpellScript(spell_sha_healing_stream_totem_heal); RegisterSpellScript(spell_sha_heroism); RegisterAuraScript(spell_sha_item_lightning_shield); |