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 145
    • Issues 145
    • 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
  • #1476

Closed
Open
Created Feb 03, 2024 by patatoplugin@patatoplugin

[bug]DamgeModifier can't work with Skill's damage

Current behavior

DamgeModifier can't work with Skill's damage

For example, a skill:

  Skills:
  - damage{a=100;damagecause=FIRE} @eir{r=5}

A mob:

Dummy:
  Type: ZOMBIE
  Display: '&6Dummy'
  Health: 1000
  DamageModifiers:
  - FIRE 0.5
  - ENTITY_ATTACK 0.5
  Skills:
  - m{m="HP is <caster.hp>";delay=5} @PIR{r=50} ~onDamaged
  - message{m="Damaged by <skill.var.damage-type> for <skill.var.damage-amount>"} @PIR{r=50} ~onDamaged

then you summon the dummy and test cast the skill, you can see the message is

Damaged by UNDEFINED fo 50.0
HP is 900

so it show 50 damage,but truely damage 100.

if you change the damagecause to ENTITY_ATTACK,you will see the message is

Damaged by SKILL fo 100.0
HP is 900

the damage reduce can't work

Edited Feb 03, 2024 by patatoplugin
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking