• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How to make limit for infernal ulti?

Status
Not open for further replies.
When a player starts the effect of the infernal ability, try checking if the player already has a unit of type infernal, and if so, kill that unit.
Not MUI.

Give it an expiration timer which is equal to the cooldown of the spell ?
Would work only if you are not messing up with cooldowns.

Otherwise, you will have to record each caster and its spawn... no wait, you'll have to trigger the spell yourself.

Regards
-Ned
 
Give it an expiration timer which is equal to the cooldown of the spell ?
Would work only if you are not messing up with cooldowns.

That wouldn't work in the context of the ability either, as the infernal would die (and would not be replaced) before the unit casts a new infernal.

For it to be MUI, it would be better to record the caster and if it has spawned an infernal, yes.
 
Use this event:
  • Unit - A unit Spawns a summoned unit
When a unit summons an infernal, store the infernal for that unit (unit indexer or hashtable).
If the unit summons an infernal again, kill the previously summoned infernal, if it exists.


In case the infernal can be summoned from an item (Infernal Stone) as well, you might have to do a bit more to make sure this item is not affected as well.
 
Status
Not open for further replies.
Back
Top