byron 0 Posted June 23, 2018 Share Posted June 23, 2018 I'm having a problem where if I have 2 players and use foreach (WoWPlayer _unit in ObjectManager.GetObjectWoWPlayer() ) { Logging.WriteDebug("Unit: " + _unit.Name + " Requires : " + (_unit.MaxHealth- _unit.Health).ToString() + " Heal " + (_unit.HealthPercent).ToString() + " % "); } It returns completely different health values depending on if they are in a party or not on vanilla Link to comment https://wrobot.eu/forums/topic/9626-objectmanagergetobjectwowplayer/ Share on other sites More sharing options...
Droidz 2738 Posted June 23, 2018 Share Posted June 23, 2018 Hello, _unit.HealthPercent = 100*_unit.Health/_unit.MaxHealth Link to comment https://wrobot.eu/forums/topic/9626-objectmanagergetobjectwowplayer/#findComment-44684 Share on other sites More sharing options...
byron 0 Posted June 23, 2018 Author Share Posted June 23, 2018 WoWPlayer.MaxHealth is the MaxPercentage and WowPlayer.Health == WowPlayerHealthPercent when not in a party on Vanilla And if they are in group or party then the values are what you would expect them to be Link to comment https://wrobot.eu/forums/topic/9626-objectmanagergetobjectwowplayer/#findComment-44685 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now