Jump to content

ObjectManager.GetObjectWoWPlayer()


byron

Recommended Posts

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
Share on other sites

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
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...