Thread Tools Display Modes
09/20/15, 09:30 PM   #1
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
[outdated] IsHardModeStillValid()

IsHardModeStillValid() will return true (or false), if :

- A Unit boss exist
- There is an hard mode available for this unit(s)
- You're in fight or not
- Hardmode is still valid

ex :

Bogdan / Valkyn :
no combat, reading book -> function returns true
no combat, don't read book -> function returns false

Nerienn'eth : Boss is at 20%, when he grabbed the sword, there was only 3 adds up, function returns false.


When reaching 0 health of all bossId, function will still be valid until last boss exists (corpse is present).

Used for veteran dungeons and trials.


There could be something wider like a
SUCCESS_SPEED_RUN = 0, SUCCESS_HARD_MODE = 1, SUCCESS_NO_DEATH = 2

IsSuccessStillValid(successType)

per exemple.

Last edited by Ayantir : 09/20/15 at 09:43 PM.
 
09/21/15, 02:10 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Just an idea about
[quote][/Nerienn'eth : Boss is at 20%, when he grabbed the sword, there was only 3 adds up, function returns false.
QUOTE]

I think if you take too much time, until the boss grabs his sword, the hardmode will automatically start and all adds will join you.
So maybe it got false at the moment he grabs his sword as you took too much time to get the other adds, except the 3 ones, down. And this is why it returns false at this moment.
 

ESOUI » Developer Discussions » Wish List » [outdated] IsHardModeStillValid()


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off