aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-05 12:27:11 -0500
committermegamage <none@none>2009-05-05 12:27:11 -0500
commit33c352b4ab9c66ce57e988075a69cc2293d81ce4 (patch)
tree5a76e9d9a83a106bd7332aa21a505157df4fea81
parent9d056cae1a03eabc0a4120bf7795e52dd4186835 (diff)
*Fix quest War is Hell.
--HG-- branch : trunk
-rw-r--r--src/game/SpellEffects.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 657e5326452..649b81b9362 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -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)