Implement SE_SummonToCorpse

This commit is contained in:
Michael Cook (mackal)
2016-11-05 14:08:00 -04:00
parent b1f97712f1
commit 06e2f76c05
3 changed files with 7 additions and 4 deletions
+5 -3
View File
@@ -722,10 +722,12 @@ void WorldServer::Process() {
Log.Out(Logs::Detail, Logs::Spells, "OP_RezzComplete received in zone %s for corpse %s",
zone->GetShortName(), srs->rez.corpse_name);
Log.Out(Logs::Detail, Logs::Spells, "Found corpse. Marking corpse as rezzed.");
Log.Out(Logs::Detail, Logs::Spells, "Found corpse. Marking corpse as rezzed if needed.");
// I don't know why Rezzed is not set to true in CompleteRezz().
corpse->IsRezzed(true);
corpse->CompleteResurrection();
if (!IsEffectInSpell(srs->rez.spellid, SE_SummonToCorpse)) {
corpse->IsRezzed(true);
corpse->CompleteResurrection();
}
}
}