[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