[Next Update] Wide Lens Broken

Discussion in 'Solved Bugs' started by Portia, Aug 29, 2016.

  1. Portia

    Portia New Member

    Joined:
    Aug 8, 2016
    Messages:
    6
    Likes Received:
    2
    Client Type (ex. PC, Android, Webclient): PC

    Client Version (if known. Webclient has no version.): Latest (2.6.2 I think)

    When did you first notice the bug?: Someone on the ladder is using hypnosis gengar with wide lens and it's never missed. Seemed fishy for a 10% buff, totaling at 66%

    Have you been able to reproduce the bug?: Yes, several times. Tested vs [TR]Hurricane and Draciel

    Information (include relevant logs, replays, screenshots): http://pastebin.com/cKTvxpp5
    It seems that 50accuracy + moves get buffed to full accuracy. Sheer cold hit 5/6 times; way too many. Zap cannon and inferno never miss (practiced several times)


    (If applicable) Sources to confirm the presence of a bug (ex. Smogon):[/TR]
     
    Zoroark likes 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
    Turbedi if you get to it before me you just have to change the line "38 1-6_409#Wide Lens" to "38 1-6_2#Wide Lens" in all the xG/item_effects.txt where wide lens exists

    acc and evade for changed to /20 instead of /4096. So 2/20 is 10% and 409/20 is broken.

    Coincidentally, OHKO doesn't even factor in items so go play the lottery.
    Code (c++):
    1. if (MoveInfo::isOHKO(move, gen())) {
    2.     bool ret = coinflip(unsigned(30 + poke(player).level() - poke(target).level()), 100);
    3.     if (!ret && !silent) {
    4.          notifyMiss(multiTar, player, target);
    5.     }
    6.     return ret;
    7. }
     
    Last edited: Aug 29, 2016
    Zoroark, NAVIDAD PIRATE and snaga like this.
  3. turbedi

    turbedi Professional circle clicker ~~~ Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jul 18, 2013
    Messages:
    385
    Likes Received:
    155
    PO Trainer Name:
    turbedi
  4. 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
    beat me by 2 freaking minutes. i just got home lol
     
    turbedi likes this.