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
+1
View File
@@ -1650,6 +1650,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
break;
}
case SE_SummonToCorpse:
case SE_Revive:
{
#ifdef SPELL_EFFECT_SPAM
+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();
}
}
}