Fix Shell Trap

This commit is contained in:
Marty-D
2016-12-29 19:10:17 -05:00
committed by GitHub
parent d8a29ecd4c
commit ef6f94da4a

View File

@@ -14372,7 +14372,7 @@ exports.BattleMovedex = {
accuracy: 100,
basePower: 150,
category: "Special",
desc: "Fails unless the user is hit by a physical attack this turn before it can execute the move.",
desc: "Fails unless the user is hit by a physical attack from an opponent this turn before it can execute the move.",
shortDesc: "User must take physical damage before moving.",
id: "shelltrap",
name: "Shell Trap",
@@ -14394,7 +14394,7 @@ exports.BattleMovedex = {
this.add('-singleturn', pokemon, 'move: Shell Trap');
},
onHit: function (pokemon, source, move) {
if (move.category === 'Physical') {
if (pokemon.side !== source.side && move.category === 'Physical') {
pokemon.volatiles['shelltrap'].gotHit = true;
}
},