[Bug Fix] Raid Targets should not be Blindable as this will break all spell casting AI. (#4334)

* [Bug] Raid Targets should not be Blindable as this will break all spell casting AI.

* Add rule.

---------

Co-authored-by: Kinglykrab <kinglykrab@gmail.com>
This commit is contained in:
Fryguy
2024-05-26 09:40:18 -04:00
committed by GitHub
parent 9638d9af3a
commit 49957e3269
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -3356,6 +3356,10 @@ void Mob::ApplySpellsBonuses(uint16 spell_id, uint8 casterlevel, StatBonuses *ne
break;
case SE_Blind:
if (RuleB(Combat, AllowRaidTargetBlind) && IsRaidTarget()) { // do not blind raid targets
break;
}
new_bonus->IsBlind = true;
break;