mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Merge branch 'master' into dev
This commit is contained in:
@@ -195,7 +195,7 @@ class PokeBattle_Battler
|
|||||||
@effects[PBEffects::Illusion] = nil
|
@effects[PBEffects::Illusion] = nil
|
||||||
if hasActiveAbility?(:ILLUSION)
|
if hasActiveAbility?(:ILLUSION)
|
||||||
idxLastParty = @battle.pbLastInTeam(@index)
|
idxLastParty = @battle.pbLastInTeam(@index)
|
||||||
if idxLastParty!=@pokemonIndex
|
if idxLastParty >= 0 && idxLastParty != @pokemonIndex
|
||||||
@effects[PBEffects::Illusion] = @battle.pbParty(@index)[idxLastParty]
|
@effects[PBEffects::Illusion] = @battle.pbParty(@index)[idxLastParty]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ end
|
|||||||
#===============================================================================
|
#===============================================================================
|
||||||
class PokeBattle_Move_012 < PokeBattle_FlinchMove
|
class PokeBattle_Move_012 < PokeBattle_FlinchMove
|
||||||
def pbMoveFailed?(user,targets)
|
def pbMoveFailed?(user,targets)
|
||||||
if user.turnCount>1 || user.lastRoundMoved>=0
|
if user.turnCount > 1
|
||||||
@battle.pbDisplay(_INTL("But it failed!"))
|
@battle.pbDisplay(_INTL("But it failed!"))
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1556,7 +1556,7 @@ end
|
|||||||
#===============================================================================
|
#===============================================================================
|
||||||
class PokeBattle_Move_149 < PokeBattle_Move
|
class PokeBattle_Move_149 < PokeBattle_Move
|
||||||
def pbMoveFailed?(user,targets)
|
def pbMoveFailed?(user,targets)
|
||||||
if user.turnCount>1 || user.lastRoundMoved>=0
|
if user.turnCount > 1
|
||||||
@battle.pbDisplay(_INTL("But it failed!"))
|
@battle.pbDisplay(_INTL("But it failed!"))
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
@@ -2575,7 +2575,7 @@ end
|
|||||||
#===============================================================================
|
#===============================================================================
|
||||||
class PokeBattle_Move_174 < PokeBattle_Move
|
class PokeBattle_Move_174 < PokeBattle_Move
|
||||||
def pbMoveFailed?(user,targets)
|
def pbMoveFailed?(user,targets)
|
||||||
if user.turnCount>1 || user.lastRoundMoved>=0
|
if user.turnCount > 1
|
||||||
@battle.pbDisplay(_INTL("But it failed!"))
|
@battle.pbDisplay(_INTL("But it failed!"))
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -169,7 +169,8 @@ class PokeBattle_Battle
|
|||||||
idxPartyForName = idxPartyNew
|
idxPartyForName = idxPartyNew
|
||||||
enemyParty = pbParty(idxBattler)
|
enemyParty = pbParty(idxBattler)
|
||||||
if enemyParty[idxPartyNew].ability == :ILLUSION
|
if enemyParty[idxPartyNew].ability == :ILLUSION
|
||||||
idxPartyForName = pbLastInTeam(idxBattler)
|
new_index = pbLastInTeam(idxBattler)
|
||||||
|
idxPartyForName = new_index if new_index >= 0
|
||||||
end
|
end
|
||||||
if pbDisplayConfirm(_INTL("{1} is about to send in {2}. Will you switch your Pokémon?",
|
if pbDisplayConfirm(_INTL("{1} is about to send in {2}. Will you switch your Pokémon?",
|
||||||
opponent.full_name, enemyParty[idxPartyForName].name))
|
opponent.full_name, enemyParty[idxPartyForName].name))
|
||||||
@@ -255,7 +256,8 @@ class PokeBattle_Battle
|
|||||||
party = pbParty(idxBattler)
|
party = pbParty(idxBattler)
|
||||||
newPkmnName = party[idxParty].name
|
newPkmnName = party[idxParty].name
|
||||||
if party[idxParty].ability == :ILLUSION
|
if party[idxParty].ability == :ILLUSION
|
||||||
newPkmnName = party[pbLastInTeam(idxBattler)].name
|
new_index = pbLastInTeam(idxBattler)
|
||||||
|
newPkmnName = party[new_index].name if new_index >= 0
|
||||||
end
|
end
|
||||||
if pbOwnedByPlayer?(idxBattler)
|
if pbOwnedByPlayer?(idxBattler)
|
||||||
opposing = @battlers[idxBattler].pbDirectOpposing
|
opposing = @battlers[idxBattler].pbDirectOpposing
|
||||||
|
|||||||
@@ -3026,7 +3026,7 @@ class PokeBattle_AI
|
|||||||
when "173"
|
when "173"
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
when "174"
|
when "174"
|
||||||
score -= 90 if user.turnCount>0 || user.lastRoundMoved>=0
|
score -= 90 if user.turnCount > 0
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
when "175"
|
when "175"
|
||||||
score += 30 if target.effects[PBEffects::Minimize]
|
score += 30 if target.effects[PBEffects::Minimize]
|
||||||
|
|||||||
@@ -1661,7 +1661,7 @@ BattleHandlers::UserAbilityEndOfMove.add(:BEASTBOOST,
|
|||||||
|
|
||||||
BattleHandlers::UserAbilityEndOfMove.add(:MAGICIAN,
|
BattleHandlers::UserAbilityEndOfMove.add(:MAGICIAN,
|
||||||
proc { |ability,user,targets,move,battle|
|
proc { |ability,user,targets,move,battle|
|
||||||
next if !battle.futureSight
|
next if battle.futureSight
|
||||||
next if !move.pbDamagingMove?
|
next if !move.pbDamagingMove?
|
||||||
next if user.item
|
next if user.item
|
||||||
next if battle.wildBattle? && user.opposes?
|
next if battle.wildBattle? && user.opposes?
|
||||||
|
|||||||
Reference in New Issue
Block a user