Avenger Posted September 12, 2009 Posted September 12, 2009 A more 'scientific' definition of HasImmunityEffects: It is true if any of the following opcodes affect the target: 0x53 Protection from projectiles 0x65 Protection from effects 0xa9 Protection from portrait icon (this is a subtype of 0x65) 0x10b Protection from display string (also a subtype of 0x65) 0x128 Protection from visual effect (also a subtype of 0x65) 0x66 Immunity to spell level 0xc9 Decrementing spell level immunity 0xcc Immunity to primary type (school) 0xcd Immunity to secondary type 0xdf Decrementing immunity to primary type 0xe2 Decrementing immunity to secondary type --------------------------------------------------------------------------- In fact, the trigger is even more generic, so there could be some other opcodes that use the internal immunity lists that the above mentioned effect opcodes affect.
Avenger Posted September 12, 2009 Author Posted September 12, 2009 A similar opcode list for HasBounceEffects: 0xc5, 0xc6, 0xc7, 0xc8, 0xca, 0xcb, 0xcf, 0xe3 and 0xe4.
Avenger Posted September 12, 2009 Author Posted September 12, 2009 The missing opcode (0xce Immunity to spell) is not my error. It seems to be missing from the checklist of HasImmunityEffects. It would be good to know if this is indeed a bug, or an intentional omission. Opinion?
devSin Posted December 29, 2009 Posted December 29, 2009 I was on vacation. I think it's intentional since they turned to blocking cumulative effects by granting self-immunity. You wouldn't want Immunity/Bounce effects to return true for somebody who is only immune to the beneficial Barkskin spell they just cast on themselves, and only to keep them from casting it on themselves again. Except for Shield blocking Magic Missile, there's very little "legitimate" use of 0xce in BG2? And who says BioWare didn't think of the little details!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.