Advertiser Content

WolfPP

Discord: Wolf#1235

Male
Brazil
Seen 35 Minutes Ago
Posted 14 Hours Ago
737 posts
1.1 Years
To Galvanize, just search for PIXILATE and copy and edit to GALVANIZE, like this:
Spoiler:

  def pbModifyType(type,attacker,opponent)
    if type>=0
      if attacker.hasWorkingAbility(:NORMALIZE) && hasConst?(PBTypes,:NORMAL)
        type=getConst(PBTypes,:NORMAL)
      elsif isConst?(type,PBTypes,:NORMAL)
        if attacker.hasWorkingAbility(:AERILATE) && hasConst?(PBTypes,:FLYING)
          type=getConst(PBTypes,:FLYING)
          @powerboost=true
        elsif attacker.hasWorkingAbility(:REFRIGERATE) && hasConst?(PBTypes,:ICE)
          type=getConst(PBTypes,:ICE)
          @powerboost=true
        elsif attacker.hasWorkingAbility(:PIXILATE) && hasConst?(PBTypes,:FAIRY)
          type=getConst(PBTypes,:FAIRY)
          @powerboost=true
        elsif attacker.hasWorkingAbility(:GALVANIZE) && hasConst?(PBTypes,:ELECTRIC)
          type=getConst(PBTypes,:ELECTRIC)
          @powerboost=true
        end
      end
    end
    return type
  end
  def pbType(type,attacker,opponent)
    @powerboost=false
    type=pbModifyType(type,attacker,opponent)
    if type>=0 && hasConst?(PBTypes,:ELECTRIC)
      if @battle.field.effects[PBEffects::IonDeluge] && isConst?(type,PBTypes,:NORMAL)
        type=getConst(PBTypes,:ELECTRIC)
        @powerboost=false
      end
      if @battle.field.effects[PBEffects::PlasmaFists] && isConst?(type,PBTypes,:NORMAL)
        type=getConst(PBTypes,:ELECTRIC)
        @powerboost=false
      elsif isConst?(type,PBTypes,:NORMAL)
        if @battle.field.effects[PBEffects::PlasmaFists] && attacker.hasWorkingAbility(:AERILATE) && 
         hasConst?(PBTypes,:FLYING)
          type=getConst(PBTypes,:FLYING)
          @powerboots=true
        elsif @battle.field.effects[PBEffects::PlasmaFists] && attacker.hasWorkingAbility(:REFRIGERATE) && 
         hasConst?(PBTypes,:ICE)
          type=getConst(PBTypes,:ICE)
          @powerboots=true
        elsif @battle.field.effects[PBEffects::PlasmaFists] && attacker.hasWorkingAbility(:PIXILATE) && 
         hasConst?(PBTypes,:FAIRY)
          type=getConst(PBTypes,:FAIRY)
          @powerboots=true
        elsif @battle.field.effects[PBEffects::PlasmaFists] && attacker.hasWorkingAbility(:GALVANIZE) && 
         hasConst?(PBTypes,:ELECTRIC)
          type=getConst(PBTypes,:ELECTRIC)
          @powerboots=true
        end
      end
      if attacker.effects[PBEffects::Electrify]
        type=getConst(PBTypes,:ELECTRIC)
        @powerboost=false
      end
    end
    return type
  end
    if (attacker.hasWorkingAbility(:AERILATE) ||
       attacker.hasWorkingAbility(:REFRIGERATE) ||
       attacker.hasWorkingAbility(:PIXILATE) ||
       attacker.hasWorkingAbility(:GALVANIZE)) && @powerboost
      damagemult=(damagemult*1.2).round
    end
    if (@battle.pbCheckGlobalAbility(:DARKAURA) && isConst?(type,PBTypes,:DARK)) ||
       (@battle.pbCheckGlobalAbility(:FAIRYAURA) && isConst?(type,PBTypes,:FAIRY))
      if @battle.pbCheckGlobalAbility(:AURABREAK)
        damagemult=(damagemult*2/3).round
      else
        damagemult=(damagemult*4/3).round
      end
    end

Slush Rush is like SANDRUSH, but to HAIL Weather, so you need to find and edit to hail (surfer surge included), in PokeBattler_Battle (without R):
Spoiler:

    case @battle.pbWeather
    when PBWeather::RAINDANCE, PBWeather::HEAVYRAIN
      speedmult=speedmult*2 if self.hasWorkingAbility(:SWIFTSWIM)
    when PBWeather::SUNNYDAY, PBWeather::HARSHSUN
      speedmult=speedmult*2 if self.hasWorkingAbility(:CHLOROPHYLL)
    when PBWeather::SANDSTORM
      speedmult=speedmult*2 if self.hasWorkingAbility(:SANDRUSH)
    when PBWeather::HAIL
      speedmult=speedmult*2 if self.hasWorkingAbility(:SLUSHRUSH)
    end
    if @battle.field.effects[PBEffects::ElectricTerrain]>0
      speedmult=speedmult*2 if self.hasWorkingAbility(:SURGESURFER)
    end
    if self.hasWorkingAbility(:QUICKFEET) && self.status>0
      speedmult=(speedmult*1.5).round
    end

Alan Flygon

A new GUY!!!

Male
Kerala
Seen 5 Days Ago
Posted 1 Week Ago
79 posts
1.4 Years
To Galvanize, just search for PIXILATE and copy and edit to GALVANIZE, like this:
Spoiler:

  def pbModifyType(type,attacker,opponent)
    if type>=0
      if attacker.hasWorkingAbility(:NORMALIZE) && hasConst?(PBTypes,:NORMAL)
        type=getConst(PBTypes,:NORMAL)
      elsif isConst?(type,PBTypes,:NORMAL)
        if attacker.hasWorkingAbility(:AERILATE) && hasConst?(PBTypes,:FLYING)
          type=getConst(PBTypes,:FLYING)
          @powerboost=true
        elsif attacker.hasWorkingAbility(:REFRIGERATE) && hasConst?(PBTypes,:ICE)
          type=getConst(PBTypes,:ICE)
          @powerboost=true
        elsif attacker.hasWorkingAbility(:PIXILATE) && hasConst?(PBTypes,:FAIRY)
          type=getConst(PBTypes,:FAIRY)
          @powerboost=true
        elsif attacker.hasWorkingAbility(:GALVANIZE) && hasConst?(PBTypes,:ELECTRIC)
          type=getConst(PBTypes,:ELECTRIC)
          @powerboost=true
        end
      end
    end
    return type
  end
  def pbType(type,attacker,opponent)
    @powerboost=false
    type=pbModifyType(type,attacker,opponent)
    if type>=0 && hasConst?(PBTypes,:ELECTRIC)
      if @battle.field.effects[PBEffects::IonDeluge] && isConst?(type,PBTypes,:NORMAL)
        type=getConst(PBTypes,:ELECTRIC)
        @powerboost=false
      end
      if @battle.field.effects[PBEffects::PlasmaFists] && isConst?(type,PBTypes,:NORMAL)
        type=getConst(PBTypes,:ELECTRIC)
        @powerboost=false
      elsif isConst?(type,PBTypes,:NORMAL)
        if @battle.field.effects[PBEffects::PlasmaFists] && attacker.hasWorkingAbility(:AERILATE) && 
         hasConst?(PBTypes,:FLYING)
          type=getConst(PBTypes,:FLYING)
          @powerboots=true
        elsif @battle.field.effects[PBEffects::PlasmaFists] && attacker.hasWorkingAbility(:REFRIGERATE) && 
         hasConst?(PBTypes,:ICE)
          type=getConst(PBTypes,:ICE)
          @powerboots=true
        elsif @battle.field.effects[PBEffects::PlasmaFists] && attacker.hasWorkingAbility(:PIXILATE) && 
         hasConst?(PBTypes,:FAIRY)
          type=getConst(PBTypes,:FAIRY)
          @powerboots=true
        elsif @battle.field.effects[PBEffects::PlasmaFists] && attacker.hasWorkingAbility(:GALVANIZE) && 
         hasConst?(PBTypes,:ELECTRIC)
          type=getConst(PBTypes,:ELECTRIC)
          @powerboots=true
        end
      end
      if attacker.effects[PBEffects::Electrify]
        type=getConst(PBTypes,:ELECTRIC)
        @powerboost=false
      end
    end
    return type
  end
    if (attacker.hasWorkingAbility(:AERILATE) ||
       attacker.hasWorkingAbility(:REFRIGERATE) ||
       attacker.hasWorkingAbility(:PIXILATE) ||
       attacker.hasWorkingAbility(:GALVANIZE)) && @powerboost
      damagemult=(damagemult*1.2).round
    end
    if (@battle.pbCheckGlobalAbility(:DARKAURA) && isConst?(type,PBTypes,:DARK)) ||
       (@battle.pbCheckGlobalAbility(:FAIRYAURA) && isConst?(type,PBTypes,:FAIRY))
      if @battle.pbCheckGlobalAbility(:AURABREAK)
        damagemult=(damagemult*2/3).round
      else
        damagemult=(damagemult*4/3).round
      end
    end

Slush Rush is like SANDRUSH, but to HAIL Weather, so you need to find and edit to hail (surfer surge included), in PokeBattler_Battle (without R):
Spoiler:

    case @battle.pbWeather
    when PBWeather::RAINDANCE, PBWeather::HEAVYRAIN
      speedmult=speedmult*2 if self.hasWorkingAbility(:SWIFTSWIM)
    when PBWeather::SUNNYDAY, PBWeather::HARSHSUN
      speedmult=speedmult*2 if self.hasWorkingAbility(:CHLOROPHYLL)
    when PBWeather::SANDSTORM
      speedmult=speedmult*2 if self.hasWorkingAbility(:SANDRUSH)
    when PBWeather::HAIL
      speedmult=speedmult*2 if self.hasWorkingAbility(:SLUSHRUSH)
    end
    if @battle.field.effects[PBEffects::ElectricTerrain]>0
      speedmult=speedmult*2 if self.hasWorkingAbility(:SURGESURFER)
    end
    if self.hasWorkingAbility(:QUICKFEET) && self.status>0
      speedmult=(speedmult*1.5).round
    end
Thanks Wolf brother I will try this out
Advertiser Content