@morpheus562 i decided to go down the rabbit hole with some help on the french side of things. Here are my findings !
Edit : note that my character is spamming mage armor without having to tell him to prebuff, don't know if it's important
Script bloc that is spamming Mage Armor
IF
OR(2)
ActionListEmpty()
EEex_LuaTrigger("return AmAttacking()")
Global("BDAI_DISABLE_DEFENSIVE","LOCALS",0)
OR(2)
!GlobalTimerNotExpired("MO_SpellCastTimer","LOCALS")
CheckStatGT(Myself,0,AURACLEANSING)
!GlobalTimerNotExpired("MO_ItemUsedTimer","LOCALS")
OR(2)
!StateCheck(Myself,STATE_INVISIBLE)
!Global("BDAI_SKILL_MODE","LOCALS",2)
!See([EVILCUTOFF])
!EEex_LuaTrigger("return AmMoving()")
HaveSpell(WIZARD_ARMOR) // SPWI102.SPL (Armure de Mage)
!CheckSpellState(Myself,MAGE_ARMOR)
CheckStatLT(Myself,20,SPELLFAILUREMAGE)
!CheckStatGT(Myself,0,CLERIC_INSECT_PLAGUE)
!StateCheck(Myself,STATE_POISONED)
!StateCheck(Myself,STATE_SILENCED)
Global("MO_CastAthkatla","LOCALS",1)
!CheckSpellState(Myself,WILD_MAGIC_AREA)
!CheckSpellState(Myself,DEAD_MAGIC_AREA)
THEN
RESPONSE #100
DisplayStringHead(Myself,321164) // Running block 199 of BDDEFAI.BCS
SetGlobal("MO_SpellCast","LOCALS",1)
SetGlobalTimer("MO_SpellCastTimer","LOCALS",ONE_ROUND)
SetInterrupt(FALSE)
Spell(Myself,WIZARD_ARMOR) // SPWI102.SPL (Armure de Mage)
SetInterrupt(TRUE)
END
Effect applied by spwi102.spl
Effect 0: Type: Apply effects list (326),Target: Preset target (2),Power: 0,Unused: 0,Creature type: STAT SPELLPEN = 1 (225),Timing mode: Instant/Permanent until death - 1,Dispel/Resistance: Natural/Nonmagical (0),Duration: 0,Probability 1: 100,Probability 2: 0,Reso
Effect 1: Type: Apply effects list (326),Target: Preset target (2),Power: 0,Unused: 0,Creature type: STAT SPELLPEN = 2 (226),Timing mode: Instant/Permanent until death - 1,Dispel/Resistance: Natural/Nonmagical (0),Duration: 0,Probability 1: 100,Probability 2: 0,Reso
Effect 2: Type: Remove effects by resource (321),Target: Self (1),Power: 0,Unused: 0,Type: Default (0),Timing mode: Instant/Permanent until death - 1,Dispel/Resistance: Natural/Nonmagical (0),Duration: 0,Probability 1: 100,Probability 2: 0,Resource: SPWI102.SPL (Arm
Effect 3: Type: AC bonus (0),Target: Self (1),Power: 1,AC value: 5,Bonus to: ( Set base AC to value(4) ),Timing mode: Instant/Limited - 0,Dispel/Resistance: Dispel/Bypass resistance (3),Duration: 2400,Probability 1: 100,Probability 2: 0,Unused: 00 00 00 00 00 00 00
Effect 4: Type: Set spell state (328),Target: Self (1),Power: 1,Unused: 3,State: MAGE_ARMOR - 260,Timing mode: Instant/Limited - 0,Dispel/Resistance: Dispel/Bypass resistance (3),Duration: 2400,Probability 1: 100,Probability 2: 0,Unused: 00 00 00 00 00 00 00 00 h,#
Effect 5: Type: Modify script state (282),Target: Self (1),Power: 1,Value: 3,State: Scripting State 5 / Defensive Modifier (4),Timing mode: Instant/Limited - 0,Dispel/Resistance: Dispel/Bypass resistance (3),Duration: 2400,Probability 1: 100,Probability 2: 0,Unused:
Effect 6: Type: Display portrait icon (142),Target: Self (1),Power: 1,Unused: 0,Icon: Armure magique (12),Timing mode: Instant/Limited - 0,Dispel/Resistance: Dispel/Bypass resistance (3),Duration: 2400,Probability 1: 100,Probability 2: 0,Unused: 00 00 00 00 00 00 00
Effect 7: Type: Play sound (174),Target: Self (1),Power: 1,Unused: 0,Unused: 0,Timing mode: Delay/Permanent - 4,Dispel/Resistance: Dispel/Bypass resistance (3),Duration: 2400,Probability 1: 100,Probability 2: 0,Resource: D5EFF02.WAV,# dice thrown/maximum level: 0,Di
Effect 8: Type: Play visual effect (215),Target: Self (1),Power: 1,Unused: 0,Play where?: Over target (attached) (1),Timing mode: Instant/Limited - 0,Dispel/Resistance: Dispel/Bypass resistance (3),Duration: 3,Probability 1: 100,Probability 2: 0,Resource: ICARMOR.VV
Effect 9: Type: Protection from spell (206),Target: Self (1),Power: 1,String: <NO TEXT>,Unused: 0,Timing mode: Instant/Limited - 0,Dispel/Resistance: Dispel/Bypass resistance (3),Duration: 2400,Probability 1: 100,Probability 2: 0,Resource: SPWI317.SPL (Armure Fantom
Effect 10: Type: Protection from spell (206),Target: Self (1),Power: 1,String: <NO TEXT>,Unused: 0,Timing mode: Instant/Limited - 0,Dispel/Resistance: Dispel/Bypass resistance (3),Duration: 2400,Probability 1: 100,Probability 2: 0,Resource: SPWI414.SPL (Armure Spirit
My understanding is not the best but, since it applies MAGE_ARMOR at effect 4 it should not cause problem no?
And last, is the effect applied on the save on the screenshot.
Is there anything easy that you see from those info? (spwi102 is only affected by SR, i did a changelog)