mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Added CanDoCombat() checks to certain actions
This commit is contained in:
@@ -13712,6 +13712,11 @@ void Client::Handle_OP_Taunt(const EQApplicationPacket *app)
|
||||
if (GetTarget() == nullptr || !GetTarget()->IsNPC())
|
||||
return;
|
||||
|
||||
if (!zone->CanDoCombat()) {
|
||||
Message(13, "You cannot taunt in a no combat zone.");
|
||||
return;
|
||||
}
|
||||
|
||||
Taunt(GetTarget()->CastToNPC(), false);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user