Beispiel #1
0
 public static void setSkull(Entity killer, Entity target)
 {
     if ((killer is Player) && (target is Player))
     {
         if (Location.inFightPits(killer.getLocation()))
         {
             return;
         }
         if (((Player)killer).getDuel() == null)
         {
             if ((killer.getLastKiller() == null || (!killer.getLastKiller().Equals(target)) && !((Player)killer).isSkulled()))
             {
                 ((Player)killer).renewSkull();
                 target.setLastkiller(killer);
             }
         }
     }
 }