Need help with ability removing ability

Vitriolic

New Member
Reaction score
0
i've been trying to make a trigger like this if a unit under the effect of lets say Bloodlust then remove curse. anyone that can help i dont got the trigger i made i deleted it in frustration :D
 

Exide

I am amazingly focused right now!
Reaction score
448
Code:
Untitled Trigger 001
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Bloodlust
    Actions
        Set TargetUnit = (Target unit of ability being cast)
        Unit - Remove Curse from TargetUnit
        Wait until ((TargetUnit has buff Bloodlust) Equal to False), checking every 0.50 seconds
        Unit - Add Curse to TargetUnit

Should work.
Note: Not tested, not MUI.
 

Exide

I am amazingly focused right now!
Reaction score
448
TargetUnit is a Unit variable, you can name it anything. I felt 'TargetUnit' was an appropriate name.
 

Vitriolic

New Member
Reaction score
0
Well i tried yours it and it dosent work i also tried with a twist

Code:
Unit - add classification to an Ancient to Targeted Unit
Unit - add classification a Hero to Targeted unit

Since i put that the ability couldn't effect Ancients but neither worked
 

Cheddar

This is the way it was meant to be.
Reaction score
126
If Bloodlust cannot affect an ancient, adding the classification of the Ancient would be a :thdown:

Did you try it without adding the classifications? Exide's trigger, copied line-for-line, should work. Wait... provided you use the event "Unit -- unit starts the effect of an ability". Change that and you should be good.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top