Extend Expiration Timer

Status
Not open for further replies.
Level 12
Joined
Feb 24, 2018
Messages
404
Is there a way to modify an expiration timer's duration? Namely refresh it, or maybe set to a custom value?
I couldn't find a GUI trigger for that, but maybe I overlooked it or there's some simple line in JASS.
 
Not sure if you can do it at the moment, but at least you will be able to soon with the upcoming wc3 patches.

I think I read about in the 1.30 (PTR) or 1.29 notes that there was some problem with custom expiration timer buffs, so I'm guessing they've already added other stuff to do with them, like for instance changing the duration that you want.

Edit: Or maybe not?

I was thinking of this:
function UnitApplyTimer takes unit u, integer buffId, real timeout returns timer
//Applies a non-fatal timer to a unit that shows the time ticking down like with a spell like Avatar or Metamorphosis. When the timer expires, a TimerRegisterExpireEvent fires.

From Producer Update: Natives List

Still, it might be there somewhere, otherwise I guess now is the perfect time to suggest for blizzard to add it! After all, being able to change the duration of stuff like expiration timers and avatar or morph durations could have many uses.
 
Last edited:
I think you can just add a new expiration timer with wahtever duration and it will overwrite the old. If not, you can possibly remove the first by removing the 'BTLF' ability from the unit before reapplying. That's technically a buff but I believe you can remove it like abilities.
New timer doesn't overwrite the old, that's the first thing I tried.

This function will be added to the WE with the 1.30 update: UnitCancelTimedLife(), so I think that's what you need. Right now you can use UnitPauseTimedLife() if nothing else can extend it.

chaos morphing a unit into itself also ends expiration timers afaik
Oh, okay, that's great news.
 
Status
Not open for further replies.
Back
Top