• 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.

[General] Devour Spell working on custom racial units

Level 6
Joined
May 13, 2023
Messages
72
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.
 
Level 25
Joined
Mar 29, 2020
Messages
1,466
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.
 
Level 6
Joined
May 13, 2023
Messages
72
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:
Top