diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 5c7bf244571..e36c25883d4 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -1963,14 +1963,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 - { - preventDeathSpell = (*i)->GetSpellProto(); + if (spellProto->SpellIconID == 2109) + { + 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; |