• 🏆 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!

Mirror Image debuff problem

Status
Not open for further replies.
Level 3
Joined
Jan 29, 2017
Messages
29
Hey guys, just wanna know, is there anyway I can make Mirror Image spell to only purge negative buffs and keep positive buffs intact?
 
Level 28
Joined
Feb 18, 2014
Messages
3,580
You can probably try something like this :
  • Trigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Miroir Image
      • ((Casting unit) has buff Inner Fire) Equall to TRUE
    • Actions
      • Wait 0.50 seconds
      • Set Loc = (Position of (Casting unit))
      • Unit - Create 1 DUMMY for (Owner of (Casting unit)) at Loc facing 0.00 degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Add Inner Fire to (Last created unit)
      • Unit - Order (Last created unit) to Humain Priest - Inner Fire (Casting unit)
      • Custom script: call RemoveLocation( udg_Loc)
 
Level 3
Joined
Jan 29, 2017
Messages
29
Ok i got it, so i need to make a trigger for every kind of buffs, never thought of it before, haha. Good idea mate, i should try it, thanks btw
 
Status
Not open for further replies.
Top