Jump to content

ObjectManager.GetObjectWoWPlayer()


byron
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...