Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1419

Closed
Open
Created Dec 11, 2023 by Taiyou06@Taiyou06Developer

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

Edited Mar 29, 2025 by Brickgard
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking