[Fixed] Assurance dealing double damage when it shouldn't

Discussion in 'Solved Bugs' started by Atli, May 20, 2016.

  1. Atli

    Atli Time just fades the pages in my book of memories Forum Moderator Server Administrator Forum Moderator Server Administrator

    Joined:
    Jan 22, 2014
    Messages:
    438
    Likes Received:
    628
    PO Trainer Name:
    Atli
    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
     
    Edna and Strudels like this.
  2. Fuzzysqurl

    Fuzzysqurl baa baa mareep I do what I want Server Owner Developer I do what I want Server Owner Developer

    Joined:
    Sep 12, 2012
    Messages:
    2,096
    Likes Received:
    967
    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)