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
+18
View File
@@ -1987,6 +1987,24 @@ Corpse* EntityList::GetCorpseByOwner(Client* client){
}
return 0;
}
Corpse* EntityList::GetCorpseByOwnerWithinRange(Client* client, Mob* center, int range){
LinkedListIterator<Corpse*> iterator(corpse_list);
iterator.Reset();
while(iterator.MoreElements())
{
if (iterator.GetData()->IsPlayerCorpse())
{
if (center->DistNoRootNoZ(*iterator.GetData()) < range && strcasecmp(iterator.GetData()->GetOwnerName(), client->GetName()) == 0) {
return iterator.GetData();
}
}
iterator.Advance();
}
return 0;
}
Corpse* EntityList::GetCorpseByID(uint16 id){
LinkedListIterator<Corpse*> iterator(corpse_list);
iterator.Reset();