From 290aec79ba0a1448b41764b87e3e4bd24deabb32 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 11 May 2024 18:06:03 -0500 Subject: [PATCH] pets kills are aded to kill spam --- src/engine/objects/PlayerCharacter.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 8be570b4..e8f19335 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -1889,6 +1889,19 @@ public class PlayerCharacter extends AbstractCharacter { // Mark kill time in killmap att.updateKillMap(this.getObjectUUID()); + + if(attacker.getObjectType().equals(GameObjectType.Mob) && ((Mob)attacker).isPet() && ((Mob)attacker).guardCaptain != null){ + message = this.getFirstName(); + if (this.guild != null && (!(this.guild.getName().equals("Errant")))) + message += " of " + this.guild.getName(); + message += " was killed by " + ((Mob)attacker).guardCaptain.getFirstName(); + if (((Mob)attacker).guardCaptain.guild != null && (!(((Mob)attacker).guardCaptain.guild.getName().equals("Errant")))) + message += " of " + ((Mob)attacker).guardCaptain.guild.getName(); + message += "!"; + ChatManager.chatPVP(message); + ChatManager.chatNationInfo(((Mob)attacker).guardCaptain.getGuild().getNation(),message); + ChatManager.chatNationInfo(this.getGuild().getNation(),message); + } } @Override