mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Fixed bugs with Multi-Attack, Illusion, Nature's Madness's definition and Slow Start
This commit is contained in:
@@ -752,7 +752,7 @@ class PokeBattle_Move_09F < PokeBattle_Move
|
||||
elsif isConst?(@id,PBMoves,:MULTIATTACK)
|
||||
@itemTypes = {
|
||||
:FIGHTINGMEMORY => :FIGHTING,
|
||||
:SLYINGMEMORY => :FLYING,
|
||||
:FLYINGMEMORY => :FLYING,
|
||||
:POISONMEMORY => :POISON,
|
||||
:GROUNDMEMORY => :GROUND,
|
||||
:ROCKMEMORY => :ROCK,
|
||||
|
||||
@@ -169,7 +169,7 @@ class PokeBattle_Battle
|
||||
idxPartyForName = idxPartyNew
|
||||
enemyParty = pbParty(idxBattler)
|
||||
if isConst?(enemyParty[idxPartyNew].ability,PBAbilities,:ILLUSION)
|
||||
idxPartyForName = pbGetLastPokeInTeam(idxBattler)
|
||||
idxPartyForName = pbLastInTeam(idxBattler)
|
||||
end
|
||||
if pbDisplayConfirm(_INTL("{1} is about to send in {2}. Will you switch your Pokémon?",
|
||||
opponent.fullname,enemyParty[idxPartyForName].name))
|
||||
|
||||
@@ -24,7 +24,7 @@ BattleHandlers::SpeedCalcAbility.add(:SANDRUSH,
|
||||
|
||||
BattleHandlers::SpeedCalcAbility.add(:SLOWSTART,
|
||||
proc { |ability,battler,mult|
|
||||
next mult/2 if battler.turnCount<=5
|
||||
next mult/2 if battler.effects[PBEffects::SlowStart]>0
|
||||
}
|
||||
)
|
||||
|
||||
@@ -1030,7 +1030,7 @@ BattleHandlers::DamageCalcUserAbility.add(:SHEERFORCE,
|
||||
|
||||
BattleHandlers::DamageCalcUserAbility.add(:SLOWSTART,
|
||||
proc { |ability,user,target,move,mults,baseDmg,type|
|
||||
mults[ATK_MULT] /= 2 if user.turnCount<=5 && move.physicalMove?
|
||||
mults[ATK_MULT] /= 2 if user.effects[PBEffects::SlowStart]>0 && move.physicalMove?
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user