Player Health

Information how to write rotations, how specific functions work
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
2 posts Page 1 of 1
zenicity
Posts:1
Joined:25 Jan 2018, 20:03
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable


Is there a function in the API to get the player's health? I see one for player mana, but don't see anything regarding player health.
Kaminaris
Site Admin
Posts:435
Joined:25 Jun 2017, 03:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable


Because they are usually not needed for rotation unless you want to somehow include defensive cooldowns. Anyways you can use wow api to do that:
http://wowwiki.wikia.com/wiki/API_UnitHealth
http://wowwiki.wikia.com/wiki/API_UnitHealthMax

as unit use
Code: Select all
'player'
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
2 posts Page 1 of 1
drogie łóżka stolik kawowy stół dębowy rozkładany