mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 05:29:43 -04:00
Core/Spells: Implemented SPELL_ATTR9_CANNOT_KILL_TARGET
(cherry picked from commit b3bdb4efef)
This commit is contained in:
@@ -940,6 +940,9 @@ bool Unit::HasBreakableByDamageCrowdControlAura(Unit* excludeCasterChannel) cons
|
||||
}
|
||||
}
|
||||
|
||||
if (spellProto && spellProto->HasAttribute(SPELL_ATTR9_CANNOT_KILL_TARGET) && damageTaken >= health)
|
||||
damageTaken = health - 1;
|
||||
|
||||
if (attacker && attacker != victim)
|
||||
{
|
||||
if (Player* killer = attacker->ToPlayer())
|
||||
|
||||
Reference in New Issue
Block a user