mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[11230] Add dummy effect of spell 42793
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
69e01fc349
commit
c3f2a6be77
2 changed files with 22 additions and 1 deletions
|
|
@ -1300,6 +1300,27 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
|
||||
return;
|
||||
}
|
||||
case 42793: // Burn Body
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT || m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
Creature* pCreature = (Creature*)unitTarget;
|
||||
|
||||
// Spell can be used in combat and may affect different target than the expected.
|
||||
// If target is not the expected we need to prevent this effect.
|
||||
if (!pCreature->GetLootRecipientGuid().IsEmpty() || pCreature->isInCombat())
|
||||
return;
|
||||
|
||||
// set loot recipient, prevent re-use same target
|
||||
pCreature->SetLootRecipient(m_caster);
|
||||
|
||||
pCreature->ForcedDespawn(GetSpellDuration(m_spellInfo));
|
||||
|
||||
// EFFECT_INDEX_2 has 0 miscvalue for effect 134, doing the killcredit here instead (only one known case exist where 0)
|
||||
((Player*)m_caster)->KilledMonster(pCreature->GetCreatureInfo(), pCreature->GetObjectGuid());
|
||||
return;
|
||||
}
|
||||
case 43036: // Dismembering Corpse
|
||||
{
|
||||
if (!unitTarget || m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11229"
|
||||
#define REVISION_NR "11230"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue