Class BattleDamage

java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.BattleDamage

public class BattleDamage extends Object
  • Constructor Details

    • BattleDamage

      public BattleDamage()
  • Method Details

    • manageEffectsUponDoingBattleDamage

      public static void manageEffectsUponDoingBattleDamage(PixelmonWrapper source, List<PixelmonWrapper> targets, DamageTypeEnum damageType, List<Boolean> hitSubstituteList, boolean isMultiHit)
      Handles statuses, abilities, and item effects that happen as a result of damage being dealt.
      Parameters:
      source - The Pixelmon that dealt the damage.
      targets - All the Pixelmon that have been dealt damage.
      damageType - Additional info on whether the damage came from recoil, a status, an item, weather, etc.
      hitSubstituteList - A list representing whether the source of the damage hit a substitute for a specific target.
      isMultiHit - Whether the move does multiple hits.
    • manageEffectsUponDoingBattleDamage

      public static void manageEffectsUponDoingBattleDamage(PixelmonWrapper source, List<PixelmonWrapper> targets, DamageTypeEnum damageType, List<Boolean> hitSubstituteList, boolean isMultiHit, float damageResult)
      Handles statuses, abilities, and item effects that happen as a result of damage being dealt.
      Parameters:
      source - The Pixelmon that dealt the damage.
      targets - All the Pixelmon that have been dealt damage.
      damageType - Additional info on whether the damage came from recoil, a status, an item, weather, etc.
      hitSubstituteList - A list representing whether the source of the damage hit a substitute for a specific target.
      isMultiHit - Whether the move does multiple hits.
      damageResult - The amount of damage dealt. Not more than the target's max HP.