Guest User

Untitled

a guest
Jul 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. using Styx.Helpers;
  2.  
  3. namespace Styx.States
  4. {
  5. using Logic.Common;
  6. using Logic.Pathing;
  7. using FiniteStateMachine;
  8. using Object_Dumping_Enumeration;
  9. using Object_Dumping_Enumeration.WoWObjects;
  10.  
  11. public class StateIsDeadInCorpse : State
  12. {
  13. public StateIsDeadInCorpse(int priority)
  14. : base(priority)
  15. {
  16. }
  17.  
  18. public override string StatusText { get { return "Dead"; } }
  19.  
  20. public override bool NeedToRun { get { return !ObjectManager.Me.IsGhost && ObjectManager.Me.Dead; } }
  21.  
  22. public override void Run()
  23. {
  24. // O NOES! WE DIED D:
  25. InfoPanel.Died();
  26. Logging.Write("I died D:");
  27. Navigator.Clear();
  28. Ressurect.Repop();
  29. }
  30. }
  31. }
Add Comment
Please, Sign In to add comment