mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Fear No Evil changes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user