so this happened http://i.imgur.com/75dq4ou.png basically when a pokemon is knocked out and assurance is used on the next pokemon this takes double damage even though it hasn't taken any damage in the current turn, so i tested with @Strudels and we confirmed it only deals normal damage in game also, if within the same turn a pokemon takes damage, switches to another pokemon and assurance is used on it double damage will be dealt, while it deals normal damage in game i guess it probably has to do with some flag not getting reset when a pokemon is switched or knocked out, so it passes to the new pokemon which takes 2x assurance damage despite not having taken any damage before that also i found this old thread which seems to be related to this, im not sure what happened there and if it's the about the same gen but yeah
Fixed the issue with KO last turn (had specific code for this. Could not find reference to this mechanic existing). Fixed the issue with switching out or dying (was set to TurnMem over PokeMem). Next update (this is being pushed with my giant damage formula overhaul)