aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjoschiwald <joschiwald.trinity@gmail.com>2014-01-27 23:01:37 +0100
committerjoschiwald <joschiwald.trinity@gmail.com>2014-01-27 23:01:37 +0100
commit166f7d41da3e5f8052a79f1e4e4850be3bc48ecd (patch)
tree23f695ee22d3c215dffb127ac7643a2c801186a3 /src
parentf9ab8ecd18731755892c81f147c9cd7162521977 (diff)
Core/Spells: addition to 96060bf0078441e779c4cfcaa80f66ac5e97a3ff
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_druid.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp
index f33a409cf25..5e56d4b8d92 100644
--- a/src/server/scripts/Spells/spell_druid.cpp
+++ b/src/server/scripts/Spells/spell_druid.cpp
@@ -1038,12 +1038,23 @@ class spell_dru_wild_growth : public SpellScriptLoader
targets.sort(Trinity::HealthPctOrderPred());
targets.resize(maxTargets);
}
+
+ _targets = targets;
+ }
+
+ void SetTargets(std::list<WorldObject*>& targets)
+ {
+ targets = _targets;
}
void Register() OVERRIDE
{
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_dru_wild_growth_SpellScript::FilterTargets, EFFECT_0, TARGET_UNIT_DEST_AREA_ALLY);
+ OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_dru_wild_growth_SpellScript::SetTargets, EFFECT_1, TARGET_UNIT_DEST_AREA_ALLY);
}
+
+ private:
+ std::list<WorldObject*> _targets;
};
SpellScript* GetSpellScript() const OVERRIDE