• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] Devour Spell working on custom racial units

Status
Not open for further replies.
Level 8
Joined
May 13, 2023
Messages
111
So i noticed that Devour based abilities are capable of devouring units that don't have creep as their race and this goes through the unit's level, meaning it'll work even if the unit has a higher level than devours max level data field. So I'd like some solutions to this ofc i can use resistant skin but i don't want it on every unit and I also don't want to put every custom unit into creep race.
 
you can trigger it - detect when the order is used, and then check the level of the targeted unit using "integer comparison-> unit level (not hero level)"

then send a cast failure message to the player, and a stop order to the unit - if you use the - "unit is issued an order (unit target)" event, it should smoothly overwrite the command.
 
you can trigger it - detect when the order is used, and then check the level of the targeted unit using "integer comparison-> unit level (not hero level)"

then send a cast failure message to the player, and a stop order to the unit - if you use the - "unit is issued an order (unit target)" event, it should smoothly overwrite the command.
yeah ig thats the only reasonable solution
EDIT:
Found another solution through Unit Classifications, Have the Devour target Non-Ancients and have the units Ancient classifications as this allows devour un-castable on the unit and since ancient unit classification does not alter the unit in anyway it has no downsides.
 
Last edited:
Status
Not open for further replies.
Back
Top