mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 02:27:21 +00:00
Mercenaries now Dismiss, Suspend, Unsuspend, and Die correctly.
This commit is contained in:
1 parent
8f32a9949b
commit
6c5248b9a9
5 files changed
+134
-39
No files matched your search
+12
-6
@@ -9557,6 +9557,17 @@ void Client::Handle_OP_MercenaryDataRequest(const EQApplicationPacket *app)
|
||||
if (merchant_id == 0) {
|
||||
|
||||
//send info about your current merc(s)
|
||||
if (GetMercID())
|
||||
{
|
||||
if (MERC_DEBUG > 0)
|
||||
Message(7, "Mercenary Debug: SendMercPersonalInfo Request");
|
||||
SendMercPersonalInfo();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (MERC_DEBUG > 0)
|
||||
Message(7, "Mercenary Debug: SendMercPersonalInfo Not Sent - MercID (%i)", GetMercID());
|
||||
}
|
||||
}
|
||||
|
||||
if (!RuleB(Mercs, AllowMercs)) {
|
||||
@@ -9699,12 +9710,7 @@ void Client::Handle_OP_MercenaryDismiss(const EQApplicationPacket *app)
|
||||
Message(7, "Mercenary Debug: Dismiss Request ( %i ) Received.", Command);
|
||||
|
||||
// Handle the dismiss here...
|
||||
Merc* merc = GetMerc();
|
||||
if (merc) {
|
||||
if (CheckCanDismissMerc()) {
|
||||
merc->Dismiss();
|
||||
}
|
||||
}
|
||||
DismissMerc(GetMercInfo().mercid); // GetMercID()
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user