mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 05:37:17 +00:00
Added CanDoCombat() checks to certain actions
This commit is contained in:
1 parent
9344896238
commit
714f8172ec
3 files changed
+24
-13
No files matched your search
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user