Browse Source

pets kills are aded to kill spam

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
290aec79ba
  1. 13
      src/engine/objects/PlayerCharacter.java

13
src/engine/objects/PlayerCharacter.java

@ -1889,6 +1889,19 @@ public class PlayerCharacter extends AbstractCharacter {
// Mark kill time in killmap // Mark kill time in killmap
att.updateKillMap(this.getObjectUUID()); 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 @Override

Loading…
Cancel
Save