mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[Spells] Update to SPA 180 SE_ResistSpellChance to not block unresistable spells. (#4847)
* SPA180 bypassed by field no_resist (field209) SPA 180 SE_ResistSpellChance provides chance to resist spells outright. This should not be checked to resist a spell if spell has (field209 / no_resist) set to 1. * Update spells.cpp confirmed on live unresistable spells are not blocked by sanctification disc or related AA's
This commit is contained in:
parent
8e2961dda5
commit
758dd1875e
@ -5364,12 +5364,14 @@ float Mob::ResistSpell(uint8 resist_type, uint16 spell_id, Mob *caster, bool use
|
||||
}
|
||||
|
||||
// Check for Chance to Resist Spell bonuses (ie Sanctification Discipline)
|
||||
if (!spells[spell_id].no_resist && resist_type != RESIST_NONE) {
|
||||
int resist_bonuses = CalcResistChanceBonus();
|
||||
if (resist_bonuses && zone->random.Roll(resist_bonuses) && !IsResurrectionSicknessSpell(spell_id)) {
|
||||
LogSpells("Resisted spell in sanctification, had [{}] chance to resist", resist_bonuses);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Special case. If the caster has the Unholy Aura Discipline activated and the spell is HT,
|
||||
// or improved HT then the resist type is disease.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user