Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void SpellHit(Unit* caster, SpellInfo const* spell) override
- {
- if (spell->Id == 227993)
- {
- if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(227992))
- {
- float damage = spellInfo->GetEffect(EFFECT_0, GetCaster()->GetSpawnMode())->CalcValue();
- float healthPct = caster->GetHealthPct() > 5.0f ? caster->GetHealthPct() : 5.0f;
- CalculatePct(damage, healthPct);
- me->CastCustomSpell(caster, 227992, &damage, &healthPct, nullptr, true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement