*Fix quest War is Hell.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-05 12:27:11 -05:00
parent 9d056cae1a
commit 33c352b4ab
+9 -1
View File
@@ -6385,7 +6385,15 @@ void Spell::EffectKillCredit(uint32 i)
if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
((Player*)unitTarget)->RewardPlayerAndGroupAtEvent(m_spellInfo->EffectMiscValue[i], unitTarget);
int32 creatureEntry = m_spellInfo->EffectMiscValue[i];
if(!creatureEntry)
{
if(m_spellInfo->Id == 42793) // Burn Body
creatureEntry = 24008; // Fallen Combatant
}
if(creatureEntry)
((Player*)unitTarget)->RewardPlayerAndGroupAtEvent(creatureEntry, unitTarget);
}
void Spell::EffectQuestFail(uint32 i)