Fear No Evil changes

This commit is contained in:
Mihapro
2014-09-30 01:14:24 +02:00
parent f3f81f6b0b
commit 8ecbedccb7
2 changed files with 51 additions and 0 deletions

View File

@@ -2446,6 +2446,33 @@ public:
}
};
class spell_q28813_set_health_random : public SpellScriptLoader
{
public:
spell_q28813_set_health_random() : SpellScriptLoader("spell_q28813_set_health_random") { }
class spell_q28813_set_health_random_SpellScript : public SpellScript
{
PrepareSpellScript(spell_q28813_set_health_random_SpellScript);
void HandleDummyEffect()
{
Unit* caster = GetCaster();
caster->SetHealth(caster->CountPctFromMaxHealth(urand(3, 5)*10));
}
void Register() override
{
OnCast += SpellCastFn(spell_q28813_set_health_random_SpellScript::HandleDummyEffect);
}
};
SpellScript* GetSpellScript() const override
{
return new spell_q28813_set_health_random_SpellScript();
}
};
void AddSC_quest_spell_scripts()
{
new spell_q55_sacred_cleansing();
@@ -2505,4 +2532,5 @@ void AddSC_quest_spell_scripts()
new spell_q14100_q14111_make_player_destroy_totems();
new spell_q10929_fumping();
new spell_q28813_get_our_boys_back_dummy();
new spell_q28813_set_health_random();
}