Package de.Keyle.MyPet.api.skill.skills
Interface Thorns
- All Superinterfaces:
OnDamageByEntitySkill,Skill
Skill that gives the pet a chance to reflect a portion of incoming melee damage back
to the attacker. When triggered, the entity that hit the pet receives damage equal to
the configured percentage of the original hit. Both the reflection percentage and
trigger chance scale with the pet's skilltree level.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the upgrade computer controlling the percent chance to reflect damage when hit.Returns the upgrade computer controlling the percentage of damage reflected back to the attacker.Methods inherited from interface de.Keyle.MyPet.api.skill.OnDamageByEntitySkill
apply, triggerMethods inherited from interface de.Keyle.MyPet.api.skill.skilltree.Skill
applyState, getName, getName, getPet, getState, getUpgradeMessage, isActive, reset, toPrettyComponent
-
Method Details
-
getReflectedDamage
UpgradeComputer<Integer> getReflectedDamage()Returns the upgrade computer controlling the percentage of damage reflected back to the attacker.- Returns:
- the upgrade computer for the percentage of damage reflected back to the attacker
-
getChance
UpgradeComputer<Integer> getChance()Returns the upgrade computer controlling the percent chance to reflect damage when hit.- Returns:
- the upgrade computer for the percent chance to reflect damage when hit
-