Add placeholder common anim

This commit is contained in:
innerthunder 2024-09-05 13:57:29 -07:00
parent c336e2874e
commit ed4ac9ac6b
3 changed files with 114 additions and 0 deletions

View File

@ -0,0 +1,111 @@
{
"graphic": "",
"frames": [
[
{
"x": 0,
"y": 0,
"zoomX": 100,
"zoomY": 100,
"visible": true,
"target": 0,
"graphicFrame": 0,
"priority": 1,
"focus": 2
},
{
"x": 128,
"y": -64,
"zoomX": 100,
"zoomY": 100,
"visible": true,
"target": 1,
"graphicFrame": 0,
"opacity": 255,
"locked": true,
"priority": 1,
"focus": 1
}
],
[
{
"x": 0,
"y": 3,
"zoomX": 100,
"zoomY": 50,
"visible": true,
"target": 0,
"graphicFrame": 0,
"priority": 1,
"focus": 2
},
{
"x": 128,
"y": -64,
"zoomX": 100,
"zoomY": 50,
"visible": true,
"target": 1,
"graphicFrame": 0,
"opacity": 255,
"locked": true,
"priority": 1,
"focus": 1
}
],
[
{
"x": 0,
"y": 0,
"zoomX": 100,
"zoomY": 50,
"visible": true,
"target": 0,
"graphicFrame": 0,
"priority": 1,
"focus": 2
},
{
"x": 128,
"y": -64,
"zoomX": 100,
"zoomY": 50,
"visible": true,
"target": 1,
"graphicFrame": 0,
"opacity": 255,
"locked": true,
"priority": 1,
"focus": 1
}
],
[
{
"x": 0,
"y": 0,
"zoomX": 100,
"zoomY": 50,
"visible": true,
"target": 0,
"graphicFrame": 0,
"priority": 1,
"focus": 2
},
{
"x": 128,
"y": -64,
"zoomX": 100,
"zoomY": 50,
"visible": true,
"target": 1,
"graphicFrame": 0,
"opacity": 255,
"locked": true,
"priority": 1,
"focus": 1
}
]
],
"position": 2,
"hue": 0
}

View File

@ -86,6 +86,7 @@ export enum CommonAnim {
RAGING_BULL_FIRE,
RAGING_BULL_WATER,
SALT_CURE,
POWDER,
SUNNY = 2100,
RAIN,
SANDSTORM,

View File

@ -712,6 +712,8 @@ export class PowderTag extends BattlerTag {
if (pokemon.getMoveType(move) === Type.FIRE) {
movePhase.cancel();
new CommonBattleAnim(CommonAnim.POWDER, pokemon).play(pokemon.scene);
const cancelDamage = new Utils.BooleanHolder(false);
applyAbAttrs(BlockNonDirectDamageAbAttr, pokemon, cancelDamage);
if (!cancelDamage.value) {