mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Merge branch 'master' of https://github.com/EQEmu/Server
This commit is contained in:
+10
-1
@@ -5499,7 +5499,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
|
||||
@@ -5513,6 +5513,15 @@ void Client::SuspendMercCommand() {
|
||||
{
|
||||
Merc* CurrentMerc = GetMerc();
|
||||
|
||||
|
||||
if (!RuleB(Mercs, AllowMercSuspendInCombat))
|
||||
{
|
||||
if (!CheckCanSpawnMerc(GetMercInfo().MercTemplateID))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(CurrentMerc && GetMercID())
|
||||
{
|
||||
CurrentMerc->Suspend();
|
||||
|
||||
+1
-1
@@ -250,7 +250,7 @@ public:
|
||||
inline virtual int32 GetStringMod() const { return itembonuses.stringedMod; }
|
||||
inline virtual int32 GetWindMod() const { return itembonuses.windMod; }
|
||||
|
||||
inline virtual int32 GetDelayDeath() const { return aabonuses.DelayDeath + spellbonuses.DelayDeath + itembonuses.DelayDeath + 11; }
|
||||
inline virtual int32 GetDelayDeath() const { return aabonuses.DelayDeath + spellbonuses.DelayDeath + itembonuses.DelayDeath; }
|
||||
|
||||
// "SET" Class Methods
|
||||
void SetMercData (uint32 templateID );
|
||||
|
||||
Reference in New Issue
Block a user