@@ -1440,29 +1440,29 @@ class spell_putricide_mutated_transformation : public SpellScriptLoader
|
||||
|
||||
class spell_putricide_mutated_transformation_dmg : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_putricide_mutated_transformation_dmg() : SpellScriptLoader("spell_putricide_mutated_transformation_dmg") { }
|
||||
public:
|
||||
spell_putricide_mutated_transformation_dmg() : SpellScriptLoader("spell_putricide_mutated_transformation_dmg") { }
|
||||
|
||||
class spell_putricide_mutated_transformation_dmg_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_putricide_mutated_transformation_dmg_SpellScript);
|
||||
|
||||
void FilterTargetsInitial(std::list<Unit*>& unitList)
|
||||
class spell_putricide_mutated_transformation_dmg_SpellScript : public SpellScript
|
||||
{
|
||||
if (Unit* owner = ObjectAccessor::GetUnit(*GetCaster(), GetCaster()->GetCreatorGUID()))
|
||||
unitList.remove(owner);
|
||||
}
|
||||
PrepareSpellScript(spell_putricide_mutated_transformation_dmg_SpellScript);
|
||||
|
||||
void Register()
|
||||
void FilterTargetsInitial(std::list<Unit*>& unitList)
|
||||
{
|
||||
if (Unit* owner = ObjectAccessor::GetUnit(*GetCaster(), GetCaster()->GetCreatorGUID()))
|
||||
unitList.remove(owner);
|
||||
}
|
||||
|
||||
void Register()
|
||||
{
|
||||
OnUnitTargetSelect += SpellUnitTargetFn(spell_putricide_mutated_transformation_dmg_SpellScript::FilterTargetsInitial, EFFECT_0, TARGET_UNIT_SRC_AREA_ALLY);
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const
|
||||
{
|
||||
OnUnitTargetSelect += SpellUnitTargetFn(spell_putricide_mutated_transformation_dmg_SpellScript::FilterTargetsInitial, EFFECT_0, TARGET_UNIT_SRC_AREA_ALLY);
|
||||
return new spell_putricide_mutated_transformation_dmg_SpellScript();
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const
|
||||
{
|
||||
return new spell_putricide_mutated_transformation_dmg_SpellScript();
|
||||
}
|
||||
};
|
||||
|
||||
class spell_putricide_regurgitated_ooze : public SpellScriptLoader
|
||||
|
||||
Reference in New Issue
Block a user