Bug Closed · Resolved

auras ignore cooldown

#2584 opened by Unknown 4 years ago

Unknownreported this bug

All auras ignoring cooldown and starts every time ~onAttack/onDamaged/...

in this simple expamle mob deals 5.5 damage with effects every their Attack (skeleton attacks about once per second) even though the cooldown is set to 8 seconds

Skeleton:
  Type: SKELETON
  Skills:
    - skill{s=Skeleton_PowerSmash} @Self ~onAttack
Skeleton_PowerSmash:
  Cooldown: 8
  Skills:
    - onAttack{
        cE=true;auraname=PowerSmash;
        onHit=[
          - damage{a=5.5}
          - particles{
              p=reddust;c=#B71C1C;a=10;hS=1.05;vS=1.05}
        ];
      }
Unknowncommented

Try giving the aura a charge of 1 since auras by default has a charge of 5

Skeleton_PowerSmash:
  Cooldown: 8
  Skills:
    - onAttack{
        cE=true;auraname=PowerSmash;charges=1;
        onHit=[
          - damage{a=5.5}
          - particles{
              p=reddust;c=#B71C1C;a=10;hS=1.05;vS=1.05}
        ];
      }
Unknowncommented

thanks! cooldown works with charges=1 attribute

Sign in to join the discussion.