Moved merc save data from extended player profile to new merc table, save merc buffs, added cure and rez spells to healer merc.

This commit is contained in:
badcaptain
2013-02-18 00:50:19 -05:00
parent a37211cb83
commit a41874b6a7
17 changed files with 1186 additions and 172 deletions
+4 -1
View File
@@ -195,6 +195,7 @@ bool Client::Process() {
LeaveGroup();
if (GetMerc())
{
GetMerc()->Save();
GetMerc()->RemoveMercFromGroup(GetMerc(), GetMerc()->GetGroup());
GetMerc()->Depop();
}
@@ -211,6 +212,7 @@ bool Client::Process() {
Save();
if (GetMerc())
{
GetMerc()->Save();
GetMerc()->RemoveMercFromGroup(GetMerc(), GetMerc()->GetGroup());
GetMerc()->Depop();
}
@@ -251,7 +253,7 @@ bool Client::Process() {
UpdateMercTimer();
}
if(GetEPP().mercTemplateID != 0)
if(GetMercInfo().MercTemplateID != 0)
{
if(p_timers.Expired(&database, pTimerMercSuspend, false)) {
CheckMercSuspendTimer();
@@ -679,6 +681,7 @@ bool Client::Process() {
if (GetGM()) {
if (GetMerc())
{
GetMerc()->Save();
GetMerc()->RemoveMercFromGroup(GetMerc(), GetMerc()->GetGroup());
GetMerc()->Depop();
}