pets kills are aded to kill spam
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user