mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
moonlight & morning sun field moves + fishing items
This commit is contained in:
@@ -116,6 +116,7 @@ begin
|
||||
WaterSport = 110
|
||||
WeightChange = 111
|
||||
Yawn = 112
|
||||
FusionSwap = 113
|
||||
|
||||
#===========================================================================
|
||||
# These effects apply to a battler position
|
||||
|
||||
@@ -2712,3 +2712,39 @@ class PokeBattle_Move_07F < PokeBattle_Move
|
||||
return baseDmg
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
#################
|
||||
# Fusion Swap
|
||||
# ###############
|
||||
class PokeBattle_Move_080 < PokeBattle_Move
|
||||
def pbMoveFailed?(user,targets)
|
||||
if targets[0].effects[PBEffects::Transform]
|
||||
@battle.pbDisplay(_INTL("But it failed!"))
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
def pbFailsAgainstTarget?(user,target)
|
||||
if target.effects[PBEffects::Transform] ||
|
||||
target.effects[PBEffects::Illusion] ||
|
||||
!target.pokemon.isFusion?
|
||||
@battle.pbDisplay(_INTL("But it failed!"))
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
def pbEffectAgainstTarget(user,target)
|
||||
body = getBasePokemonID(target.pokemon.species, true)
|
||||
head = getBasePokemonID(target.pokemon.species, false)
|
||||
newspecies = (head) * Settings::NB_POKEMON + body
|
||||
target.pbTransform(newspecies)
|
||||
end
|
||||
|
||||
def pbShowAnimation(id,user,targets,hitNum=0,showAnimation=true)
|
||||
super
|
||||
@battle.scene.pbChangePokemon(user,targets[0].pokemon)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user