• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Trigger] Damage/Execute target trigger not working

Status
Not open for further replies.
Level 1
Joined
Aug 27, 2017
Messages
3
-first time posting, yay-
Allright,so my trigger is

  • Devour
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to Devour (R)
    • Actions
      • Set Caster = (Casting unit)
      • Set TargetUnit = (Target unit of ability being cast)
      • Wait until ((TargetUnit has buff Nommed ) Equal to True), checking every 0.10 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Integer((Life of TargetUnit))) Less than or equal to 200
        • Then - Actions
          • Unit - Cause Caster to damage TargetUnit, dealing 99999.00 damage of attack type Spells and damage type Death
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Caster has buff Outmass (1) ) Equal to False
                  • (Caster has buff Outmass (2) ) Equal to False
                  • (Caster has buff Outmass (3) ) Equal to False
                  • (Caster has buff Outmass (4) ) Equal to False
                  • (Caster has buff Outmass (5) ) Equal to False
                  • (Caster has buff Outmass (6) ) Equal to False
                  • (Caster has buff Outmass (7) ) Equal to False
                  • (Caster has buff Outmass (8) ) Equal to False
            • Then - Actions
              • Unit - Create 1 DummyUnit1 for (Owner of Caster) at (Position of Caster) facing (Position of Caster)
              • Set dummy_unit = (Last created unit)
              • Unit - Add a 2.00 second Generic expiration timer to dummy_unit
              • Unit - Order dummy_unit to Human Priest - Inner Fire Caster
            • Else - Actions
        • Else - Actions
          • Unit - Cause Caster to damage TargetUnit, dealing (100.00 + (20.00 x (Real((Level of Devour (R) for Caster))))) damage of attack type Spells and damage type Death
It is supposed to deal a certain amount of damage,and if the target is low enough,to "execute" it. If target was executed then cating unit recives a stackable buff ( I know it's incomplete,and unit will recive only the 1st buff). However,the execution damage won't be dealt even if the execution buff is applied. The only way I thought the damage will be dealt is by chaning the Event from Begins channeling an ability to Begins casting an ability. But then the execution damage will be dealt before the mana cost or cooldown is paid. Any ideeas? (I've also never tried to work with JASS or other scripting tools)

If there is any doubt, the custom buff "Nommed" is placed on the target by the same spell.
 
Last edited by a moderator:
Level 1
Joined
Aug 27, 2017
Messages
3
When you say the execution damage is not being dealt, are you also saying that only the Else - Actions where you deal regular damage is only being dealt?

Negative. Unless the target is above 200 HP then no damage is dealt. If the target is above 200 HP then the "Else" damage is dealt (100+20xLoA ,which it should)
 
Status
Not open for further replies.
Top