Код:
- // only if in front
- if (pVictim->HasInArc(M_PI_F,this))
- {
- int32 deflect_chance = pVictim->GetTotalAuraModifier(SPELL_AURA_DEFLECT_SPELLS)*100;
- tmp+=deflect_chance;
- if (roll < tmp)
- return SPELL_MISS_DEFLECT;
- }
return SPELL_MISS_NONE;
- }
// Check for attack from behind
if (!pVictim->HasInArc(M_PI_F,this))