mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
*Fix Cheat Death.
--HG-- branch : trunk
This commit is contained in:
@@ -1939,14 +1939,17 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe
|
||||
case SPELLFAMILY_ROGUE:
|
||||
{
|
||||
// Cheat Death (make less prio with Guardian Spirit case)
|
||||
if (!preventDeathSpell && spellProto->SpellIconID == 2109 &&
|
||||
pVictim->GetTypeId()==TYPEID_PLAYER && // Only players
|
||||
!((Player*)pVictim)->HasSpellCooldown(31231) &&
|
||||
// Only if no cooldown
|
||||
roll_chance_i((*i)->GetAmount()))
|
||||
// Only if roll
|
||||
if (spellProto->SpellIconID == 2109)
|
||||
{
|
||||
preventDeathSpell = (*i)->GetSpellProto();
|
||||
if (!preventDeathSpell &&
|
||||
pVictim->GetTypeId()==TYPEID_PLAYER && // Only players
|
||||
!((Player*)pVictim)->HasSpellCooldown(31231) &&
|
||||
// Only if no cooldown
|
||||
roll_chance_i((*i)->GetAmount()))
|
||||
// Only if roll
|
||||
{
|
||||
preventDeathSpell = (*i)->GetSpellProto();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user