[Suggestion] Detailed damage taken placeholder
Summary
A placeholder for returning damage taken, attacker and parent of the attacker(if exists) in a string format. Ideally, it would be used in a ~onDamaged skill, but logically, it should just be holding the data of the last attack, so it should be retrievable anytime.
Currently, Bukkit DamageCause or <skill.var.damage-amount> or @interactionLastAttacker are not enough for tracking. Additionally, mythiclib & mmocore skills and summons complicate the matter even further.
Usage
Use case: Keeping track of DPS of every individual player in a boss fight.
Value
Priority Very High as i would use this feature in calculation for loottables
Implementation
Returned string: "damage taken, the name of the player (or the entity) that initiated the attack, " Or if it is triggered by a summon: "damage taken, parent player (or entity) of the summon, summon name,".
Example 1: Let's assume a player named John attacks the boss, damaging it for 13 hp, and triggering its ~onDamaged skill. Suppose this skill is - message{m="<caster.last-damage>"} @world
. Then the skill sends a message such as 13,John
.
Example 2: If, Instead of John, his summon named undead_thrall attacks the said mob, then the returned string would be 5,John,undead_thrall