@pkmn/sim 0.7.49 → 0.7.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/config/formats.js +16 -57
- package/build/cjs/config/formats.js.map +1 -1
- package/build/cjs/data/formats-data.js +11 -11
- package/build/cjs/data/formats-data.js.map +1 -1
- package/build/cjs/data/items.js +1 -1
- package/build/cjs/data/items.js.map +1 -1
- package/build/cjs/data/moves.js +17 -17
- package/build/cjs/data/moves.js.map +1 -1
- package/build/cjs/data/text/moves.js +6 -6
- package/build/cjs/data/text/moves.js.map +1 -1
- package/build/cjs/sim/battle-actions.js +7 -0
- package/build/cjs/sim/battle-actions.js.map +1 -1
- package/build/cjs/sim/battle.js +5 -1
- package/build/cjs/sim/battle.js.map +1 -1
- package/build/cjs/sim/dex-moves.js.map +1 -1
- package/build/cjs/sim/pokemon.js +4 -0
- package/build/cjs/sim/pokemon.js.map +1 -1
- package/build/cjs/sim/team-validator.js +2 -1
- package/build/cjs/sim/team-validator.js.map +1 -1
- package/build/esm/config/formats.mjs +16 -57
- package/build/esm/config/formats.mjs.map +1 -1
- package/build/esm/data/formats-data.mjs +11 -11
- package/build/esm/data/formats-data.mjs.map +1 -1
- package/build/esm/data/items.mjs +1 -1
- package/build/esm/data/items.mjs.map +1 -1
- package/build/esm/data/moves.mjs +17 -17
- package/build/esm/data/moves.mjs.map +1 -1
- package/build/esm/data/text/moves.mjs +6 -6
- package/build/esm/data/text/moves.mjs.map +1 -1
- package/build/esm/sim/battle-actions.mjs +7 -0
- package/build/esm/sim/battle-actions.mjs.map +1 -1
- package/build/esm/sim/battle.mjs +5 -1
- package/build/esm/sim/battle.mjs.map +1 -1
- package/build/esm/sim/dex-moves.mjs.map +1 -1
- package/build/esm/sim/pokemon.mjs +4 -0
- package/build/esm/sim/pokemon.mjs.map +1 -1
- package/build/esm/sim/team-validator.mjs +2 -1
- package/build/esm/sim/team-validator.mjs.map +1 -1
- package/build/types/sim/dex-moves.d.ts +1 -0
- package/package.json +1 -1
package/build/cjs/data/moves.js
CHANGED
|
@@ -6725,21 +6725,7 @@ exports.Moves = {
|
|
|
6725
6725
|
name: "Gigaton Hammer",
|
|
6726
6726
|
pp: 5,
|
|
6727
6727
|
priority: 0,
|
|
6728
|
-
flags: { protect: 1, mirror: 1 },
|
|
6729
|
-
onDisableMove(pokemon) {
|
|
6730
|
-
if (pokemon.lastMove?.id === 'gigatonhammer')
|
|
6731
|
-
pokemon.disableMove('gigatonhammer');
|
|
6732
|
-
},
|
|
6733
|
-
beforeMoveCallback(pokemon) {
|
|
6734
|
-
if (pokemon.lastMove?.id === 'gigatonhammer')
|
|
6735
|
-
pokemon.addVolatile('gigatonhammer');
|
|
6736
|
-
},
|
|
6737
|
-
onAfterMove(pokemon) {
|
|
6738
|
-
if (pokemon.removeVolatile('gigatonhammer')) {
|
|
6739
|
-
this.add('-hint', "Some effects can force a Pokemon to use Gigaton Hammer again in a row.");
|
|
6740
|
-
}
|
|
6741
|
-
},
|
|
6742
|
-
condition: {},
|
|
6728
|
+
flags: { protect: 1, mirror: 1, cantusetwice: 1 },
|
|
6743
6729
|
secondary: null,
|
|
6744
6730
|
target: "normal",
|
|
6745
6731
|
type: "Steel",
|
|
@@ -13995,10 +13981,24 @@ exports.Moves = {
|
|
|
13995
13981
|
move.infiltrates = true;
|
|
13996
13982
|
}
|
|
13997
13983
|
},
|
|
13998
|
-
|
|
13984
|
+
onTryMove(source, target, move) {
|
|
13985
|
+
if (source.isAlly(target) && source.volatiles['healblock']) {
|
|
13986
|
+
this.attrLastMove('[still]');
|
|
13987
|
+
this.add('cant', source, 'move: Heal Block', move);
|
|
13988
|
+
return false;
|
|
13989
|
+
}
|
|
13990
|
+
},
|
|
13991
|
+
onHit(target, source, move) {
|
|
13999
13992
|
if (source.isAlly(target)) {
|
|
14000
13993
|
if (!this.heal(Math.floor(target.baseMaxhp * 0.5))) {
|
|
14001
|
-
|
|
13994
|
+
if (target.volatiles['healblock'] && target.hp !== target.maxhp) {
|
|
13995
|
+
this.attrLastMove('[still]');
|
|
13996
|
+
// Wrong error message, correct one not supported yet
|
|
13997
|
+
this.add('cant', source, 'move: Heal Block', move);
|
|
13998
|
+
}
|
|
13999
|
+
else {
|
|
14000
|
+
this.add('-immune', target);
|
|
14001
|
+
}
|
|
14002
14002
|
return this.NOT_FAIL;
|
|
14003
14003
|
}
|
|
14004
14004
|
}
|