Bug Open

attackOnCooldown condition fails to work

#10194 opened by CarrotChomps 2 days ago

CarrotChompsreported this bug

```yml greatsword_slam:   Conditions:   - attackOnCooldown false   Skills:   #- message{m=<skill.var.damage-amount>} @self   - effect:particles{particle=cloud;amount=100;speed=0.5} @triggerlocation   - damage{amount=<skill.var.damage-amount>;dc=CONTACT} @EntitiesInRadius{livingonly=true;radius=4;targetself=false}   - throw{velocity=5;velocityY=10} @LivingEntitiesInRadius{r=5}   - effect:sound{s=item.mace.smash_ground_heavy;volume=0.3;pitch=1} @self ```

https://wiki.mythiccraft.io/mythiccrucible/Skills/Conditions/AttackOnCooldown

The following fails to fire even when the casters attack isn't on cooldown.

mm debug 7 returned this when casted ``` [12:41:42 INFO]: [MythicMobs] |----- DamageModifierStat for type ENTITY_ATTACK is 1, setting damage modifier to 1 [12:41:42 INFO]: [MythicMobs] |--------? ? Condition CustomCondition outcome true action CANCEL [12:41:42 INFO]: [MythicMobs] |----- ! SkillMechanic not usable: Condition CustomCondition failed [12:41:42 INFO]: [MythicMobs] #- Skill Trigger SkillTrigger[name=DAMAGED, metadataClass=class io.lumine.mythic.core.skills.triggers.meta.EmptyMetadata, aliases=[HURT]] fired for ActiveMob §dUnstable Zombie (uuid: f111f0fd-7ccf-4df9-b770-7bc983f8141f) [12:41:42 INFO]: [MythicMobs] +--- Running Mechanics for ActiveMob Unstable_Zombie (uuid: f111f0fd-7ccf-4df9-b770-7bc983f8141f) [12:41:42 INFO]: [MythicMobs] |----- [Final Damage] is 6 [12:41:42 INFO]: [MythicMobs] |----- ---------- [END] ---------- ```


CarrotChompscommented
  Material: IRON_SWORD
  Weapon:
    ItemDamagePerAttack: 2
  Attributes:
    MainHand:
      ATTACK_DAMAGE: 5 ADD
      ATTACK_SPEED: -3.6 ADD
  Skills:
  - skill{skill=greatsword_slam} @trigger ~onAttack
  Lore:
    - ""
    - "<RED><b><!i>SLAM"
    - "<!i><gray>Attack damage and"
    - "<!i><gray>launch nearby enemies."
    - ""


IronGreatsword:
  Material: IRON_SWORD
  Template: BaseGreatsword

DiamondGreatsword:
  Material: DIAMOND_SWORD
  Template: BaseGreatsword

This is the item thats its calling from

Sign in to join the discussion.