Quantcast

Fix ticket 293 - TimeToHealthPercent.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2013-09-26 05:34:00
Author local date 2013-09-26 05:34:00 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2013-09-26 05:34:00
Committer local date 2013-09-26 05:34:00 +0000
Commit e327b45dffc62308b8c2863fd41ca2708bbcffa3
Tree a5e199cc10d3e08b2ea8a81eaa3994c66521b877
Parent 469faf9e8fb69dbac7593beb82dd2f35153c90a1
Fix ticket 293 - TimeToHealthPercent.

Add new script condition TimeToHealthPercent() that returns the number of
seconds before the target's health percent reaches the given amount, e.g.,

    if target.TimeToHealthPercent(25) <5 UsePotion()

Patch from @ShmooDude.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1027 d5049fe3-3747-40f7-a4b5-f36d6801af5f