mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Part 2: Merge branch 'master' of https://github.com/TrinityCore/TrinityCore into 4.3.4
This commit is contained in:
@@ -2133,7 +2133,7 @@ class spell_item_complete_raptor_capture : public SpellScriptLoader
|
||||
enum ImpaleLeviroth
|
||||
{
|
||||
NPC_LEVIROTH = 26452,
|
||||
SPELL_LEVIROTH_SELF_IMPALE = 49882,
|
||||
SPELL_LEVIROTH_SELF_IMPALE = 49882
|
||||
};
|
||||
|
||||
class spell_item_impale_leviroth : public SpellScriptLoader
|
||||
@@ -2152,11 +2152,14 @@ class spell_item_impale_leviroth : public SpellScriptLoader
|
||||
return true;
|
||||
}
|
||||
|
||||
void HandleDummy(SpellEffIndex /* effIndex */)
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Unit* target = GetHitCreature())
|
||||
if (Creature* target = GetHitCreature())
|
||||
if (target->GetEntry() == NPC_LEVIROTH && !target->HealthBelowPct(95))
|
||||
{
|
||||
target->CastSpell(target, SPELL_LEVIROTH_SELF_IMPALE, true);
|
||||
target->ResetPlayerDamageReq();
|
||||
}
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
Reference in New Issue
Block a user