mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-23 08:16:16 -05:00
Fix Zen Mode.
- differentiate between "Transform"ed and transformed so Transform works on it
This commit is contained in:
parent
5b9700f17a
commit
f1da1521fa
|
|
@ -2572,6 +2572,7 @@ exports.BattleAbilities = {
|
|||
effect: {
|
||||
onStart: function(pokemon) {
|
||||
if (pokemon.transformInto('Darmanitan-Zen')) {
|
||||
pokemon.transformed = false;
|
||||
this.add('-formechange', pokemon, 'Darmanitan-Zen');
|
||||
this.add('-message', 'Zen Mode triggered! (placeholder)');
|
||||
} else {
|
||||
|
|
@ -2580,6 +2581,7 @@ exports.BattleAbilities = {
|
|||
},
|
||||
onEnd: function(pokemon) {
|
||||
if (pokemon.transformInto('Darmanitan')) {
|
||||
pokemon.transformed = false;
|
||||
this.add('-formechange', pokemon, 'Darmanitan');
|
||||
this.add('-message', 'Zen Mode ended! (placeholder)');
|
||||
} else {
|
||||
|
|
@ -2588,6 +2590,7 @@ exports.BattleAbilities = {
|
|||
},
|
||||
onUpdate: function(pokemon) {
|
||||
if (pokemon.ability !== 'zenmode') {
|
||||
pokemon.transformed = false;
|
||||
pokemon.removeVolatile('zenmode');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user