Interface BeAttackedAble

All Known Implementing Classes:
DreamMistSoul, EnergySplashSoul, NovaSparkSoul, PassionPopSoul, SoothingLoveSoul, StarloveCharmSoul

public interface BeAttackedAble
Contract for souls that can be checked and damaged by potions.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether a potion matches this soul weakness.
    void
    Applies damage from a potion if it matches the soul weakness.
  • Method Details

    • canbeHitByPotion

      boolean canbeHitByPotion(BasePotion potion)
      Checks whether a potion matches this soul weakness.
      Parameters:
      potion - potion used for the attack
      Returns:
      true when the potion can damage this soul
    • takeDamageFromPotion

      void takeDamageFromPotion(BasePotion potion)
      Applies damage from a potion if it matches the soul weakness.
      Parameters:
      potion - potion used for the attack