Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. private static float GetCurrentPrimaryResource()
  2. {
  3. if (_me.ActorClass == ActorClass.Necromancer)
  4. {
  5. return _me.CommonData.GetAttribute<float>(ActorAttributeType.ResourceCur, 8);
  6. }
  7. return _me.CurrentPrimaryResource;
  8. }
  9.  
  10. private static float GetMaxPrimaryResource()
  11. {
  12. if (_me.ActorClass == ActorClass.Necromancer)
  13. {
  14. return _me.CommonData.GetAttribute<float>(ActorAttributeType.ResourceEffectiveMax, 8);
  15. }
  16. return _me.MaxPrimaryResource;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement