Skip to content

Commit

Permalink
Kawamatsu/G5 Luffy Special Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Solaris333 committed Aug 14, 2023
1 parent 56df92c commit 2018135
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion common/data/specials.js
Original file line number Diff line number Diff line change
Expand Up @@ -16288,13 +16288,26 @@ window.specials = {
},
},
3954: {
atkbase: function(p) { return p.unit.class.has("Slasher") ? [1250, 0, 1250][p.cached.multiplier] : 1; },
atkbasePlus: function(p) { return [0, 250, 250][p.cached.multiplier]; },
onActivation: function(p) {
var levels = [0, 1, 2];
var n = (levels.indexOf(p.cached.multiplier) + 1) % levels.length;
p.cached.multiplier = levels[n];
p.scope.notify({
text: '' + ["Base ATK boost", "Base ATK buff", "Base ATK boost and Base ATK buff"][n] + ' boost. To ' + ["Base ATK boost", "Base ATK buff", "Base ATK boost and Base ATK buff"][(n + 1) % levels.length] + ' boost, disable and re-enable this special',
name: (p.team[p.sourceSlot].unit.number+1).toString() + 'warning'
});
},
},
3955: {
affinity: function(p) { return p.unit.type == "PSY" && p.unit.class.has("Free Spirit") ? 3 : p.unit.type == "PSY" || p.unit.class.has("Free Spirit") ? 2.75 : 1; },
orb: function(p) { return p.cached.multiplier ? p.unit.type == "PSY" && p.unit.class.has("Free Spirit") ? 3.25 : p.unit.type == "PSY" || p.unit.class.has("Free Spirit") ? 2.75 : 1 : 1; },
onActivation: function(p) {
p.cached.multiplier = p.actions[p.sourceSlot];
},
},
3955: {
3956: {
affinity: function(p) { return p.unit.type == "PSY" && p.unit.class.has("Free Spirit") ? 3 : p.unit.type == "PSY" || p.unit.class.has("Free Spirit") ? 2.75 : 1; },
orb: function(p) { return p.cached.multiplier ? p.unit.type == "PSY" && p.unit.class.has("Free Spirit") ? 3.25 : p.unit.type == "PSY" || p.unit.class.has("Free Spirit") ? 2.75 : 1 : 1; },
onActivation: function(p) {
Expand Down

0 comments on commit 2018135

Please sign in to comment.