Fix spread moves' self-boost behaviour

This commit is contained in:
Marty-D
2017-11-17 18:13:19 -05:00
parent 7dfca478fe
commit 33be9cc5a5
2 changed files with 29 additions and 28 deletions

View File

@@ -2303,7 +2303,7 @@ exports.BattleMovedex = {
pp: 5,
priority: 0,
flags: {protect: 1, mirror: 1, sound: 1, authentic: 1},
self: {
selfBoost: {
boosts: {
def: -1,
},
@@ -2314,6 +2314,33 @@ exports.BattleMovedex = {
zMovePower: 185,
contestType: "Tough",
},
"clangoroussoulblaze": {
num: 728,
accuracy: true,
basePower: 185,
category: "Special",
desc: "Boosts the user's Attack, Defense, Sp. Atk, Sp. Def, and Speed by one stage.",
shortDesc: "Boosts all stats 1 stage. Hits adjacent foes.",
id: "clangoroussoulblaze",
name: "Clangorous Soulblaze",
pp: 1,
priority: 0,
flags: {sound: 1, authentic: 1},
selfBoost: {
boosts: {
atk: 1,
def: 1,
spa: 1,
spd: 1,
spe: 1,
},
},
isZ: "kommoniumz",
secondary: false,
target: "allAdjacentFoes",
type: "Dragon",
contestType: "Cool",
},
"clearsmog": {
num: 499,
accuracy: true,
@@ -3704,33 +3731,6 @@ exports.BattleMovedex = {
zMovePower: 195,
contestType: "Beautiful",
},
"clangoroussoulblaze": {
num: 728,
accuracy: true,
basePower: 185,
category: "Special",
desc: "Boosts the user's Attack, Defense, Sp. Atk, Sp. Def, and Speed by one stage.",
shortDesc: "Boosts all stats 1 stage. Hits adjacent foes.",
id: "clangoroussoulblaze",
name: "Clangorous Soulblaze",
pp: 1,
priority: 0,
flags: {sound: 1, authentic: 1},
self: {
boosts: {
atk: 1,
def: 1,
spa: 1,
spd: 1,
spe: 1,
},
},
isZ: "kommoniumz",
secondary: false,
target: "allAdjacentFoes",
type: "Dragon",
contestType: "Cool",
},
"dragonascent": {
num: 620,
accuracy: 100,

View File

@@ -290,6 +290,7 @@ exports.BattleScripts = {
damage = this.tryMoveHit(target, pokemon, move);
if (damage || damage === 0 || damage === undefined) moveResult = true;
}
if (move.selfBoost && moveResult) this.moveHit(pokemon, pokemon, move, move.selfBoost, false, true);
if (!pokemon.hp) {
this.faint(pokemon, pokemon, move);
}