Package de.Keyle.MyPet.api.skill.skills
Interface Shield
- All Superinterfaces:
Skill
Skill that gives the pet a chance to intercept damage aimed at its owner, redirecting
a percentage of the incoming damage to itself instead. Both the trigger chance and the
fraction of damage redirected scale with the pet's skilltree level.
When triggered, the owner takes reduced damage and the pet absorbs the redirected portion.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the upgrade computer controlling the percent chance to intercept damage for the owner.Returns the upgrade computer controlling the percentage of damage redirected from owner to pet.Methods inherited from interface de.Keyle.MyPet.api.skill.skilltree.Skill
applyState, getName, getName, getPet, getState, getUpgradeMessage, isActive, reset, toPrettyComponent
-
Method Details
-
getChance
UpgradeComputer<Integer> getChance()Returns the upgrade computer controlling the percent chance to intercept damage for the owner.- Returns:
- the upgrade computer for the percent chance to intercept damage for the owner
-
getRedirectedDamage
UpgradeComputer<Integer> getRedirectedDamage()Returns the upgrade computer controlling the percentage of damage redirected from owner to pet.- Returns:
- the upgrade computer for the percentage of damage redirected from owner to pet
-