Added CanDoCombat() checks to certain actions

This commit is contained in:
Uleat
2018-04-11 18:49:49 -04:00
parent 9344896238
commit 714f8172ec
3 changed files with 24 additions and 13 deletions
+2 -1
View File
@@ -1534,7 +1534,8 @@ void NPC::PickPocket(Client* thief)
}
if(zone->random.Roll(5)) {
AddToHateList(thief, 50);
if (zone->CanDoCombat())
AddToHateList(thief, 50);
Say("Stop thief!");
thief->Message(13, "You are noticed trying to steal!");
thief->SendPickPocketResponse(this, 0, PickPocketFailed);