示例#1
0
 public static void KillMeForGoodHook(On.Terraria.Player.orig_KillMeForGood orig, Player self)
 {
     if (!Subworld.IsActive <DreamBattleWorld>())
     {
         orig.Invoke(self);
     }
 }
示例#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);
 }