Skip to content

Commit

Permalink
Fix Dark Void & Magic Bounce in Gen 7 (#1654)
Browse files Browse the repository at this point in the history
Tested, seems to work fine
  • Loading branch information
turbedi committed May 23, 2017
1 parent 0c63de7 commit 77a6dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BattleServer/moves.cpp
Expand Up @@ -8015,7 +8015,7 @@ struct MMDarkVoid : public MM
}

static void daf(int s, int, BS &b) {
if (b.gen() >= 7 && b.poke(s).num() != Pokemon::Darkrai) {
if (b.gen() >= 7 && b.poke(s).num() != Pokemon::Darkrai && !b.battleMemory().value("CoatingAttackNow").toBool()) {
fturn(b,s).add(TM::Failed);
}
}
Expand Down

0 comments on commit 77a6dc2

Please sign in to comment.