Skip to content

Commit

Permalink
Modify animation for Stone Axe (#2299)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrianshChari authored Nov 13, 2024
1 parent 6e29f5d commit 5706935
Showing 1 changed file with 66 additions and 6 deletions.
72 changes: 66 additions & 6 deletions play.pokemonshowdown.com/src/battle-animations-moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36558,6 +36558,72 @@ export const BattleMoveAnims: AnimTable = {
}, 'swing');
},
},
stoneaxe: {
anim(scene, [attacker, defender]) {
BattleOtherAnims.slashattack.anim(scene, [attacker, defender]);

scene.showEffect('rock1', {
x: defender.x,
y: defender.y,
z: defender.z,
scale: 0.1,
opacity: 0.5,
time: 500,
}, {
x: defender.x - 30,
y: defender.y + 15,
z: defender.z,
scale: 0.2,
opacity: 1,
time: 800,
}, 'ballistic', 'fade');
scene.showEffect('rock3', {
x: defender.x,
y: defender.y,
z: defender.z,
scale: 0.1,
opacity: 0.5,
time: 500,
}, {
x: defender.x + 36,
y: defender.y + 45,
z: defender.z,
scale: 0.2,
opacity: 1,
time: 800,
}, 'ballistic', 'fade');
scene.showEffect('rock2', {
x: defender.x,
y: defender.y,
z: defender.z,
scale: 0.1,
opacity: 0.5,
time: 500,
}, {
x: defender.x + 40,
y: defender.y - 25,
z: defender.z,
scale: 0.2,
opacity: 1,
time: 800,
}, 'ballistic', 'fade');
scene.showEffect('rock3', {
x: defender.x,
y: defender.y,
z: defender.z,
scale: 0.1,
opacity: 0.5,
time: 500,
}, {
x: defender.x - 20,
y: defender.y - 25,
z: defender.z,
scale: 0.2,
opacity: 1,
time: 800,
}, 'ballistic', 'fade');
},
},
};

// placeholder animations
Expand Down Expand Up @@ -36932,12 +36998,6 @@ BattleMoveAnims['ragefist'] = {anim: BattleMoveAnims['shadowpunch'].anim};
BattleMoveAnims['ragingbull'] = {anim: BattleMoveAnims['gigaimpact'].anim};
BattleMoveAnims['shedtail'] = {anim: BattleMoveAnims['substitute'].anim};
BattleMoveAnims['shelter'] = {anim: BattleMoveAnims['withdraw'].anim};
BattleMoveAnims['stoneaxe'] = {
anim(scene, [attacker, defender]) {
BattleMoveAnims['stoneedge'].anim(scene, [attacker, defender]);
BattleOtherAnims.slashattack.anim(scene, [attacker, defender]);
},
};
BattleMoveAnims['terablast'] = {anim: BattleMoveAnims['scald'].anim};
BattleMoveAnims['terablastbug'] = {anim: BattleMoveAnims['bugbuzz'].anim};
BattleMoveAnims['terablastdark'] = {anim: BattleMoveAnims['darkpulse'].anim};
Expand Down

0 comments on commit 5706935

Please sign in to comment.