Fix pet message to use StringIDs, most should be correct related to pet "saying" or just the client getting a message

Added the pet taunting message
This commit is contained in:
mackal
2013-03-30 22:57:20 -04:00
parent 2dde4dce12
commit 96b42ed86f
5 changed files with 29 additions and 18 deletions
+4 -2
View File
@@ -1707,8 +1707,10 @@ bool NPC::Attack(Mob* other, int Hand, bool bRiposte, bool IsStrikethrough, bool
//Check that we can attack before we calc heading and face our target
if (!IsAttackAllowed(other)) {
if (this->GetOwnerID())
entity_list.MessageClose(this, 1, 200, 10, "%s says, 'That is not a legal target master.'", this->GetCleanName());
this->Say_StringID(NOT_LEGAL_TARGET);
if(other) {
if (other->IsClient())
other->CastToClient()->RemoveXTarget(this, false);
RemoveFromHateList(other);
mlog(COMBAT__ATTACKS, "I am not allowed to attack %s", other->GetName());
}
@@ -4332,4 +4334,4 @@ int32 Mob::RuneAbsorb(int32 damage, uint16 type)
}
return damage;
}
}
}