- 143
- Posts
- 4
- Years
- Seen Mar 26, 2024
Here is another bugfix for the ability slowstart:
Code:
BattleHandlers::SpeedCalcAbility.add(:SLOWSTART,
proc { |ability,battler,mult|
next mult/2 [COLOR="Red"]if battler.effects[PBEffects::SlowStart]>0[/COLOR]
}
)
Code:
BattleHandlers::DamageCalcUserAbility.add(:SLOWSTART,
proc { |ability,user,target,move,mults,baseDmg,type|
[COLOR="Red"] if user.effects[PBEffects::SlowStart]>0[/COLOR] && move.physicalMove?
mults[ATK_MULT] *= 0.5
end
}
)