mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[11422] Fix bug in spell dummy for 46485, looking up by wrong field
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
73985bca70
commit
0b2f34f93b
2 changed files with 2 additions and 2 deletions
|
|
@ -1605,7 +1605,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
{
|
||||
m_caster->CastSpell(unitTarget, pSpell, true);
|
||||
|
||||
if (const SpellEntry *pSpellCredit = sSpellStore.LookupEntry(pSpell->EffectMiscValue[EFFECT_INDEX_0]))
|
||||
if (const SpellEntry *pSpellCredit = sSpellStore.LookupEntry(pSpell->EffectTriggerSpell[EFFECT_INDEX_0]))
|
||||
((Player*)m_caster)->KilledMonsterCredit(pSpellCredit->EffectMiscValue[EFFECT_INDEX_0]);
|
||||
|
||||
((Creature*)unitTarget)->ForcedDespawn();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11421"
|
||||
#define REVISION_NR "11422"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue