Skill Swap fails against Dynamax

This commit is contained in:
The Immortal
2019-12-11 23:30:29 +04:00
parent 542300bb1d
commit 0b044cf280

View File

@@ -1216,7 +1216,6 @@ let BattleMovedex = {
return move.basePower;
},
category: "Physical",
// TODO: Check to see if power doubles against Gigantamax
desc: "Deals double damage against Dynamax and Gigantamax Pokemon.",
shortDesc: "Double damage against Dynamax/Gigantamax.",
id: "behemothbash",
@@ -1239,7 +1238,6 @@ let BattleMovedex = {
return move.basePower;
},
category: "Physical",
// TODO: Check to see if power doubles against Gigantamax
desc: "Deals double damage against Dynamax and Gigantamax Pokemon.",
shortDesc: "Double damage against Dynamax/Gigantamax.",
id: "behemothblade",
@@ -16848,7 +16846,7 @@ let BattleMovedex = {
flags: {protect: 1, mirror: 1, authentic: 1, mystery: 1},
onTryHit(target, source) {
let bannedAbilities = ['battlebond', 'comatose', 'disguise', 'illusion', 'multitype', 'powerconstruct', 'rkssystem', 'schooling', 'shieldsdown', 'stancechange', 'wonderguard', 'zenmode'];
if (bannedAbilities.includes(target.ability) || bannedAbilities.includes(source.ability)) {
if (target.volatiles['dynamax'] || bannedAbilities.includes(target.ability) || bannedAbilities.includes(source.ability)) {
return false;
}
},