mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-12 03:05:36 -05:00
Fix Life Orb + Emergency Exit interaction (#6738)
This commit is contained in:
@@ -285,6 +285,11 @@ export const BattleScripts: BattleScriptsData = {
|
||||
if (!move.negateSecondary && !(move.hasSheerForce && pokemon.hasAbility('sheerforce'))) {
|
||||
this.singleEvent('AfterMoveSecondarySelf', move, null, pokemon, target, move);
|
||||
this.runEvent('AfterMoveSecondarySelf', pokemon, target, move);
|
||||
if (pokemon && pokemon !== target && move && move.category !== 'Status') {
|
||||
if (pokemon.hp <= pokemon.maxhp / 2) {
|
||||
this.runEvent('EmergencyExit', pokemon, pokemon);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user