[10910] Use provided target instead of caster for SPELL_EFFECT_QUEST_COMPLETE

Signed-off-by: zergtmn <zerg@myisp.com>
This commit is contained in:
KiriX 2010-12-23 21:02:16 +05:00 committed by zergtmn
parent a1e0111638
commit b6c50838a3
2 changed files with 3 additions and 5 deletions

View file

@ -7461,13 +7461,11 @@ void Spell::EffectReputation(SpellEffectIndex eff_idx)
void Spell::EffectQuestComplete(SpellEffectIndex eff_idx) void Spell::EffectQuestComplete(SpellEffectIndex eff_idx)
{ {
if(m_caster->GetTypeId() != TYPEID_PLAYER) if (unitTarget->GetTypeId() != TYPEID_PLAYER)
return; return;
Player *_player = (Player*)m_caster;
uint32 quest_id = m_spellInfo->EffectMiscValue[eff_idx]; uint32 quest_id = m_spellInfo->EffectMiscValue[eff_idx];
_player->AreaExploredOrEventHappens(quest_id); ((Player*)unitTarget)->AreaExploredOrEventHappens(quest_id);
} }
void Spell::EffectSelfResurrect(SpellEffectIndex eff_idx) void Spell::EffectSelfResurrect(SpellEffectIndex eff_idx)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10909" #define REVISION_NR "10910"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__