- Pokémon Essentials Version
- v21.1 ✅
Just replace the "pbCalcType(user)" code with this.
This code ensures that if a Pokemon without the Normal type uses a move, the move will change to match the user's first type.
Now every Pokemon whose mediocre Normal-type moves lack STAB become great STAB moves! Tackle, Quick Attack, ExtremeSpeed, Slash, SelfDestruct, and more will all match your type and add a new dimension of strategy to battles!
Code:
def pbCalcType(user)
@powerBoost = false
type = @calcType
userTypes = user.pbTypes(true)
ret = pbBaseType(user)
if ret == :NORMAL && !user.pbHasType?(:NORMAL)
ret = userTypes[0]
end
if ret && GameData::Type.exists?(:ELECTRIC)
if @battle.field.effects[PBEffects::IonDeluge] && ret == :NORMAL
ret = :ELECTRIC
@powerBoost = false
end
if user.effects[PBEffects::Electrify]
ret = :ELECTRIC
@powerBoost = false
end
end
return ret
end
This code ensures that if a Pokemon without the Normal type uses a move, the move will change to match the user's first type.
Now every Pokemon whose mediocre Normal-type moves lack STAB become great STAB moves! Tackle, Quick Attack, ExtremeSpeed, Slash, SelfDestruct, and more will all match your type and add a new dimension of strategy to battles!
- Credits
- Jason Godwyn