mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Merc logic fix for heal spells - allows mercs to select fast healing spells as a 'standard' healing spell & new rule for unsuspend
This commit is contained in:
+10
-1
@@ -5468,7 +5468,7 @@ void Client::SuspendMercCommand() {
|
||||
Merc* merc = Merc::LoadMerc(this, &zone->merc_templates[GetMercInfo().MercTemplateID], 0, true);
|
||||
if(merc)
|
||||
{
|
||||
SpawnMerc(merc, true);
|
||||
SpawnMerc(merc, false);
|
||||
Log.Out(Logs::General, Logs::Mercenaries, "SuspendMercCommand Successful Unsuspend for %s.", GetName());
|
||||
}
|
||||
else
|
||||
@@ -5482,6 +5482,15 @@ void Client::SuspendMercCommand() {
|
||||
{
|
||||
Merc* CurrentMerc = GetMerc();
|
||||
|
||||
|
||||
if (!RuleB(Mercs, AllowMercSuspendInCombat))
|
||||
{
|
||||
if (!CheckCanSpawnMerc(GetMercInfo().MercTemplateID))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(CurrentMerc && GetMercID())
|
||||
{
|
||||
CurrentMerc->Suspend();
|
||||
|
||||
Reference in New Issue
Block a user