mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-05 21:17:43 -05:00
Revert "Show fail message when status is blocked by Sub"
This was implemented exactly the wrong way and showed fail messages
in a lot of situations they shouldn't show up, such as when
Close Combat's Def/SpD drops didn't happen.
This reverts commit 1edc40f936.
This commit is contained in:
parent
4133fc3356
commit
4db053befe
|
|
@ -13446,8 +13446,7 @@ exports.BattleMovedex = {
|
|||
}
|
||||
var damage = this.getDamage(source, target, move);
|
||||
if (!damage) {
|
||||
if (damage === 0) return null;
|
||||
return false;
|
||||
return null;
|
||||
}
|
||||
damage = this.runEvent('SubDamage', target, source, move, damage);
|
||||
if (!damage) {
|
||||
|
|
|
|||
|
|
@ -388,7 +388,6 @@ exports.BattleScripts = {
|
|||
hitResult = true;
|
||||
}
|
||||
if (!hitResult) {
|
||||
if (hitResult === false) this.add('-fail', target);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -841,8 +841,7 @@ exports.BattleMovedex = {
|
|||
}
|
||||
var damage = this.getDamage(source, target, move);
|
||||
if (!damage) {
|
||||
if (damage === 0) return null;
|
||||
return false;
|
||||
return null;
|
||||
}
|
||||
damage = this.runEvent('SubDamage', target, source, move, damage);
|
||||
if (!damage) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user