Exemplo n.º 1
0
 public static void KillMeForGoodHook(On.Terraria.Player.orig_KillMeForGood orig, Player self)
 {
     if (!Subworld.IsActive <DreamBattleWorld>())
     {
         orig.Invoke(self);
     }
 }
Exemplo n.º 2
0
 public static void KillMeForGoodHook(On.Terraria.Player.orig_KillMeForGood orig, Player self)
 {
     if (BelongsToDummy(self))
     {
         self.ghost = false;
         self.dead  = false;
         return;
     }
     orig.Invoke(self);
 }