Skip to content

Commit

Permalink
Add animation for Mighty Cleave (#2295)
Browse files Browse the repository at this point in the history
* Mighty Cleave animation first draft

* Give the slash a big streak
  • Loading branch information
shrianshChari authored Nov 5, 2024
1 parent 06c097f commit acd0d99
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions play.pokemonshowdown.com/src/battle-animations-moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36393,6 +36393,81 @@ export const BattleMoveAnims: AnimTable = {
}, 'linear', 'fade', {filter: 'hue-rotate(180deg)'});
},
},
mightycleave: {
anim(scene, [attacker, defender]) {
scene.showEffect('sword', {
x: attacker.leftof(-10),
y: attacker.y - 10,
z: attacker.z,
scale: 0.5,
opacity: 1,
}, {
y: attacker.y + 10,
scale: 1,
opacity: 0.4,
time: 300,
}, 'decel', 'fade');
attacker.delay(300);
attacker.anim({
x: defender.x,
y: defender.y,
z: defender.behind(70),
time: 300,
opacity: 0.5,
}, 'accel');
attacker.anim({
x: defender.x,
y: defender.x,
z: defender.behind(100),
opacity: 0,
time: 100,
}, 'linear');
attacker.anim({
x: attacker.x,
y: attacker.y,
z: attacker.behind(70),
opacity: 0,
time: 1,
}, 'linear');
attacker.anim({
opacity: 1,
time: 500,
}, 'decel');
scene.showEffect('iceball', {
x: defender.x,
y: defender.y,
z: defender.z,
time: 500,
xscale: 1.2,
yscale: 0.4,
opacity: 0.8,
}, {
time: 760,
xscale: 1.4,
yscale: 0.6,
opacity: 0.4,
}, 'accel', 'explode', {filter: 'hue-rotate(180deg)', rotate: '-45deg'});
scene.showEffect('rightslash', {
x: defender.x,
y: defender.y,
z: defender.z,
scale: 1.5,
time: 500,
}, {
scale: 2,
opacity: 0,
time: 760,
}, 'accel', 'fade');
defender.delay(760);
defender.anim({
z: defender.behind(30),
time: 100,
}, 'swing');
defender.anim({
time: 300,
}, 'swing');
},
},
};

// placeholder animations
Expand Down

0 comments on commit acd0d99

Please sign in to comment.