mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Revert the Payback "fix" and make it not double on a switch
Turns out doubling on the switch no longer happens in gen 5.
This commit is contained in:
parent
b4168d6ba9
commit
f3c48d0bd9
22
movedex.js
22
movedex.js
|
|
@ -3468,21 +3468,8 @@ exports.BattleMovedex = {
|
|||
name: "Focus Energy",
|
||||
pp: 30,
|
||||
priority: 0,
|
||||
volatileStatus: 'FocusEnergy',
|
||||
effect: {
|
||||
onModifyMove: function(move) {
|
||||
move.critRatio += 2;
|
||||
}
|
||||
},
|
||||
onHit: function(target) {
|
||||
if (target.volatiles['FocusEnergy'])
|
||||
{
|
||||
return false;
|
||||
}
|
||||
this.add('message '+target.name+' is getting pumped! (placeholder)');
|
||||
},
|
||||
secondary: false,
|
||||
target: "self",
|
||||
target: "normal",
|
||||
type: "Normal"
|
||||
},
|
||||
"FocusPunch": {
|
||||
|
|
@ -6812,7 +6799,12 @@ exports.BattleMovedex = {
|
|||
accuracy: true,
|
||||
basePower: 50,
|
||||
basePowerCallback: function(pokemon, target) {
|
||||
if (!target.newlySwitched && this.willMove(target))
|
||||
if (target.newlySwitched)
|
||||
{
|
||||
this.debug('Payback NOT boosted on a switch');
|
||||
return 50;
|
||||
}
|
||||
if (this.willMove(target))
|
||||
{
|
||||
this.debug('Payback NOT boosted');
|
||||
return 50;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user