mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-10-02 06:07:10 -05:00
Fix Shell Trap
This commit is contained in:
@@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user