View Single Post
  #6    
Old August 31st, 2012 (03:17 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,140
What's wrong is the part where you didn't do as I said. I told you which specific lines to replace, yet you also deleted an extra one and added an (incorrect) extra one.

Code:
class PokeBattle_Move_135 < PokeBattle_Move
  def pbBaseDamage(basedmg,attacker,opponent)
    multiplier=1
    multiplier=2 if pbHasMove?(attacker,:ALPHASHOCK) &&
                    pbHasMove?(attacker,:BETAFLAME) &&
                    pbHasMove?(attacker,:GAMMASPORE) &&
                    pbHasMove?(attacker,:DELTAWAVE)
    else multiplier=1
    return basedmg*multiplier
  end
     
def pbAdditionalEffect(attacker,opponent)
    multiplier=1
    multiplier=2 if pbHasMove?(attacker,:ALPHASHOCK) &&
                    pbHasMove?(attacker,:BETAFLAME) &&
                    pbHasMove?(attacker,:GAMMASPORE) &&
                    pbHasMove?(attacker,:DELTAWAVE)
    else multiplier=1
    rnd=@battle.pbRandom(10/multiplier)
    case rnd
      when 0
        return false if !opponent.pbCanParalyze?(false)
        opponent.pbParalyze(attacker)
        @battle.pbDisplay(_INTL("{1} is paralyzed!  It may be unable to move!",opponent.pbThis))
        return true
    end
    return false
  end
Delete the red lines, and add the green lines back in.
__________________
Reply With Quote