mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
feat(Core/Spells): Move spell_item_runic_healing_injector to spell scripts (#11088)
This commit is contained in:
committed by
GitHub
parent
d195c09f56
commit
5719e46236
@@ -3184,6 +3184,28 @@ class spell_item_rocket_boots : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
class spell_item_runic_healing_injector : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_item_runic_healing_injector);
|
||||
|
||||
bool Load() override
|
||||
{
|
||||
return GetCaster()->GetTypeId() == TYPEID_PLAYER;
|
||||
}
|
||||
|
||||
void HandleHeal(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Player* caster = GetCaster()->ToPlayer())
|
||||
if (caster->HasSkill(SKILL_ENGINEERING))
|
||||
SetHitHeal(GetHitHeal() * 1.25f);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_item_runic_healing_injector::HandleHeal, EFFECT_0, SPELL_EFFECT_HEAL);
|
||||
}
|
||||
};
|
||||
|
||||
enum PygmyOil
|
||||
{
|
||||
SPELL_PYGMY_OIL_PYGMY_AURA = 53806,
|
||||
@@ -3612,6 +3634,7 @@ void AddSC_item_spell_scripts()
|
||||
RegisterSpellScript(spell_item_nitro_boots);
|
||||
RegisterSpellScript(spell_item_teach_language);
|
||||
RegisterSpellScript(spell_item_rocket_boots);
|
||||
RegisterSpellScript(spell_item_runic_healing_injector);
|
||||
RegisterSpellScript(spell_item_pygmy_oil);
|
||||
RegisterSpellScript(spell_item_unusual_compass);
|
||||
RegisterSpellScript(spell_item_chicken_cover);
|
||||
|
||||
Reference in New Issue
Block a user