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 TypeMethodDescriptionbooleancanbeHitByPotion(BasePotion potion) Checks whether a potion matches this soul weakness.voidtakeDamageFromPotion(BasePotion potion) Applies damage from a potion if it matches the soul weakness.
-
Method Details
-
canbeHitByPotion
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
Applies damage from a potion if it matches the soul weakness.- Parameters:
potion- potion used for the attack
-