Ritrex
Usuario habitual
tengo esta abilidad que lo que hace es: que al usar cuaquier movimiento typo fuego siempre dejara al poke openente una quemada, ya la probe pero no funciona por alguna razon
este el el codigo
BattleHandlers::UserAbilityOnHit.add ( :INTENSEFIRE,
proc { |ability,user,target,move,battle|
next if !move.type !=FIRE
next if battle.pbRandom(100)>=40
battle.pbShowAbilitySplash(user)
if target.hasActiveAbility?( :SHIELDDUST) && !battle.moldBreaker
battle.pbShowAbilitySplash(target)
if !PokeBattle_SceneConstants::USE_ABILITY_SPLASH
battle.pbDisplay(_INTL("{1} is unaffected!",target.pbThis))
end
battle.pbHideAbilitySplash(target)
elsif target.pbCanBurn?(user,PokeBattle_SceneConstants::USE_ABILITY_SPLASH)
msg = nil
if !PokeBattle_SceneConstants::USE_ABILITY_SPLASH
msg = _INTL("{1}'s {2} burned {3}!",user.pbThis,user.abilityName,target.pbThis(true))
end
target.pbBurn(user,msg)
end
battle.pbHideAbilitySplash(user)
}
)
Alguien me ayudaria con mi problema
este el el codigo
BattleHandlers::UserAbilityOnHit.add ( :INTENSEFIRE,
proc { |ability,user,target,move,battle|
next if !move.type !=FIRE
next if battle.pbRandom(100)>=40
battle.pbShowAbilitySplash(user)
if target.hasActiveAbility?( :SHIELDDUST) && !battle.moldBreaker
battle.pbShowAbilitySplash(target)
if !PokeBattle_SceneConstants::USE_ABILITY_SPLASH
battle.pbDisplay(_INTL("{1} is unaffected!",target.pbThis))
end
battle.pbHideAbilitySplash(target)
elsif target.pbCanBurn?(user,PokeBattle_SceneConstants::USE_ABILITY_SPLASH)
msg = nil
if !PokeBattle_SceneConstants::USE_ABILITY_SPLASH
msg = _INTL("{1}'s {2} burned {3}!",user.pbThis,user.abilityName,target.pbThis(true))
end
target.pbBurn(user,msg)
end
battle.pbHideAbilitySplash(user)
}
)
Alguien me ayudaria con mi problema