• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Is there a way prevent spamming to this trigger?

Status
Not open for further replies.
Level 17
Joined
Jun 2, 2009
Messages
1,134
  • MindStaffHasar
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • ((Casting unit) has an item of type Claws of Attack +15) Equal to True
      • ((Target unit of ability being cast) belongs to an enemy of (Owner of (Casting unit))) Equal to True
      • ((Unit-type of (Target unit of ability being cast)) is A Hero) Equal to True
    • Actions
      • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((Life of (Target unit of ability being cast)) / 10.00) damage of attack type Chaos and damage type Unknown
Trigger runs when player stops casting spells.

  • MindStaffHasar
    • Events
  • Unit - A unit Finishes casting an ability
    • Conditions
      • ((Casting unit) has an item of type Claws of Attack +15) Equal to True
      • ((Target unit of ability being cast) belongs to an enemy of (Owner of (Casting unit))) Equal to True
      • ((Unit-type of (Target unit of ability being cast)) is A Hero) Equal to True
    • Actions
      • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((Life of (Target unit of ability being cast)) / 10.00) damage of attack type Chaos and damage type Unknown
Trigger does not work.

How can i make a system like this?
When the player actually starts casting spell?
 
Level 17
Joined
Jun 2, 2009
Messages
1,134
I don't know what you mean by a system since nothing of these triggers look like one.
You use Starts the effect on an ability, not Begins casting an ability.
It does not work too. Somehow still it runs the trigger. Here is the original trigger.

  • MindStaffHasar
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • ((Casting unit) has an item of type Mind Staff) Equal to True
      • ((Target unit of ability being cast) belongs to an enemy of (Owner of (Casting unit))) Equal to True
      • ((Unit-type of (Target unit of ability being cast)) is A Hero) Equal to True
    • Actions
      • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((Life of (Target unit of ability being cast)) / 10.00) damage of attack type Chaos and damage type Unknown
Update: MY BAD, THERE WAS ANOTHER TRIGGER INTERFERING. Solved.
 
Last edited:
Status
Not open for further replies.
Top