• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Resource icon

v21.1 Normal-Type Attacks without STAB match your first Type instead 1.69

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
Just replace the "pbCalcType(user)" code with this.

Code:
Expand Collapse Copy
  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
Author
SuperSpyroDragon64
Views
652
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from SuperSpyroDragon64

Latest reviews

As I developed my fan game and made the decision to use this Mechanic interaction with a Pokemon's Primary Type, I have grown to really like this mechanic. It pairs up nicely with the Tera mechanic, and when used with Universal TM's, it grants every Pokemon a consistent and reliable STAB attack, without having to make custom moves. This mechanic however, pretty much requires extensive work on re balancing Pokemon's metagame. A mechanic like this in Vanilla Gen 9 Pokemon, will cause an astronomical amount of issues, given that it grants everything access to a Strong STAB move, depending on how their Primary and Secondary Type is arranged.

This is a feature that someone can't just slap onto a fan game project, without evaluating the implications it would cause to the metagame balance. But if someone decides this feature is what their fan game needs, then it's a mechanic that gives more to think about that is a lot of fun.
Back
Top