Bug: Auras do not apply certain mechanics during their duration

Discussion in 'Bug Reports' started by Tankdest22, Nov 4, 2019.

  1. Tankdest22

    Tankdest22 Active Member
    Supporter Moderator Quality Assurance

    Joined:
    Jul 20, 2015
    Messages:
    214
    Likes Received:
    40
    Enter a brief description of what is broken Auras do not apply certain mechanics during their duration

    What version of Minecraft are you using? 1.15.1

    What server jar are you using? Paper Spigot

    What is this a bug report for? MythicMobs

    What version of the plugin are you using? Development Build #3083

    Describe the bug. Be as specific as possible, images or short gifs/videos are welcome but save configuration files for later sections. Write a whole paragraph if needed, help us bug testers replicate your issue!
    This one is hard to explain but if you use an aura and apply it to a mob and it should inflict damage every time the aura's tick fires but the damage will not be inflicted to the mob. Additionally certain effects will not be applied as well like potion effects. The particles and sounds play on the mob but other mechanics do not.

    To replicate simply place the skills/items below into their appropriate locations and then use the item's skill then attack a mob (The mob should have a decent amount of hp) you will notice that when the damage is supposed to apply. It simply doesn't. Neither does the slowness effect.

    NOTE: You also need Mythic Artifacts to help replicate!

    Example Configurations
    The Item:

    Code:
    CatalystRelicSword:
      Id: diamond_sword
      Display: '&c&lThe &6R&ee&6t&er&6i&eb&6u&et&6o&er'
      Lore:
      - '&8This sword was formed when the Catalyst'
      - '&8was defeated. It contains the souls of'
      - '&8thousands who were eaten by the beast'
      - '&8and they all scream for retribution!'
      - ''
      - '&c&m&l-&8&m&l>&c&l&m--------&8&m&l<&c&l&m-'
      - '&8Tier: &c&lR&4&la&c&li&4&ld &8- &c&lOffense'
      - '&c&m&l-&8&m&l>&c&l&m--------&8&m&l<&c&l&m-'
      - '&6[Shift + Left-Click to view skill information at /spawn]'
      Skills:
      - skill{s=CatalystRetributionAttackSkill} @self ~onUse
      - effect:particles{p=dragonBreath;a=3;vs=0;hs=0.5;Speed=0;yOffset=0} @Self ~onTimer:10
      Attributes:
        MainHand:
          Damage: 17
          AttackSpeed: -0.15
      Enchantments:
      - DAMAGE_ALL:10
      - DAMAGE_ARTHROPODS:10
      - DAMAGE_UNDEAD:10
      - DURABILITY:2
      Options:
        Repairable: false
    
    Item's Skill:
    
    CatalystRetributionAttackSkill:
      Cooldown: 210
      Conditions:
      - hasbuff{buffname=OnCooldown} castinstead SkillCooldownWarning
      Skills:
      - message{m="&7[&cDungeons&7] &f&l<trigger.name> &6prepares the power of &7[&eRetribution&7]&6!"} @PlayersInRadius{r=20;targetself=true}
      - aura{auraName=OnCooldown;onEnd=SkillCooldownEndMessage;duration=240} @self
      - effect:sound{s=entity.wither.spawn;v=1;p=1.5} @Self
      - onAttack{auraName=Retributing_Light;onTick=RetributionEffect;onHit=RetributingLightDebuff;onEnd=RetributionEnd;duration=240;multiplier=1.5;maxStacks=1} @self
      - delay 4200
      - effect:sound{s=block.beacon.power_select;v=0.5;p=1} @Self
      - message{msg="&6&l>&f&l> &7<&lb>&eRetribution&7<&rb> &6skill ready... &f&l<&6&l<"} @Self
    RetributionEffect:
      Skills:
      - effect:particles{p=explode;amount=1;speed=0.1;hs=.4;vs=.4;y=1}
    RetributingLightDebuff:
      TargetConditions:
      - entitytype PLAYER cancel
      Skills:
      - aura{auraName=RetributingLight_Bleed;onTick=RetributingLight-Tick;duration=200;interval=20;refreshDuration=true;maxStacks=1;mergeSameCaster=true}
    RetributingLight-Tick:
      Skills:
      - effect:particles{p=drip_lava;amount=5;speed=0.5;hs=0.4;vs=0.4;y=1}
      - effect:sound{s=entity.wither.ambient;v=0.1;p=2}
      - damage{a=60;pi=true;pkb=true}
      - potion{t=SLOW;d=120;l=2}
    RetributionEnd:
      Skills:
      - message{msg="&7[&cDungeons&7] &6Your retribution is satified for now..."} @Self
     
    #1
    Last edited: Jan 11, 2020
  2. microwave0

    microwave0 New Member

    Joined:
    Nov 7, 2019
    Messages:
    6
    Likes Received:
    0
    Your onAttack Mechanic includes the onHit submechanic, but I don't think that one exists. You can try putting it in the mechanic specified in onEnd; RetributionEnd
     
    #2
  3. Tankdest22

    Tankdest22 Active Member
    Supporter Moderator Quality Assurance

    Joined:
    Jul 20, 2015
    Messages:
    214
    Likes Received:
    40
    Bumping this because this issue is still unresolved and still persists in later MM versions.

    @microwave0 This skill used to work correctly and would apply the damage but not anymore.

    Edited top post to include the newest development build I am using and new MC version.
     
    #3
  4. jaylawl

    jaylawl Community Manager
    Community Manager Premium Supporter Supporter Quality Assurance

    Joined:
    Sep 16, 2015
    Messages:
    1,822
    Likes Received:
    175
    Please post an example config stripped of all things unrelated to this issue for reproduction purposes
     
    #4
  5. Tankdest22

    Tankdest22 Active Member
    Supporter Moderator Quality Assurance

    Joined:
    Jul 20, 2015
    Messages:
    214
    Likes Received:
    40
    @jaylawl Updated Configuration Below

    ITEM
    Code:
    TestAuraSword:
      Id: diamond_sword
      Display: '&cTHE TEST'
      Skills:
      - skill{s=TestAuraAttackSkill} @self ~onUse
    SKILL
    Code:
    TestAuraAttackSkill:
      Skills:
      - message{m="&7[&cDungeons&7] &f&l<trigger.name> &6prepares the power of &7[&eRetribution&7]&6!"} @PlayersInRadius{r=20;targetself=true}
      - onAttack{auraName=Retributing_Light;onTick=TestAuraAttackEffect;onHit=TestAuraAttackDebuff;duration=240;multiplier=1.5;maxStacks=1} @self
    TestAuraAttackEffect:
      Skills:
      - effect:particles{p=explode;amount=1;speed=0.1;hs=.4;vs=.4;y=1}
    TestAuraAttackDebuff:
      TargetConditions:
      - entitytype PLAYER cancel
      Skills:
      - aura{auraName=RetributingLight_Bleed;onTick=TestAuraAttack-Tick;duration=200;interval=20;refreshDuration=true;maxStacks=1;mergeSameCaster=true}
    TestAuraAttack-Tick:
      Skills:
      - effect:particles{p=drip_lava;amount=5;speed=0.5;hs=0.4;vs=0.4;y=1}
      - effect:sound{s=entity.wither.ambient;v=0.1;p=2}
      - damage{a=60;pi=true;pkb=true}
      - potion{t=SLOW;d=120;l=2}
     
    #5

Share This Page