Did you do what Xetrill suggested, and check the 'Area Effect Ignores LOS'?
BTW, how do you find the magnitude of the ward spell? (I assume you're talking about a ward spell since you said you were dispelling a shield.)
Trying that now, But I doubt this has anything to do with it. The Flag is pretty self-explanatory: It makes the AOE go through walls, which is not what I intend to do.
I used a "dispel" to find the magnitude:
predr = game.getplayer().getav("damageresist")dispel.cast(game.getplayer(), game.getplayer())postdr = game.getplayer().getav("damageresist")magnitude = predr - postdrAnd therein lies part of the problem, since this portion needs to run on the player, unaffected by whether or not it hits anthing, while the rest has to run on the targets. Will probably need a global for that, even though I tried not to use one.
Still need a way to apply the stagger reliably though.
Edit: Ok, I stand corrected: checking "area effect ignores LOS" works. I have no clue
why that works, because it sure is not what the Flag says it does, but it works. So the simple version works now. Now the question is: Does that also fix the targeting problem?