mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[10910] Use provided target instead of caster for SPELL_EFFECT_QUEST_COMPLETE
Signed-off-by: zergtmn <zerg@myisp.com>
This commit is contained in:
parent
a1e0111638
commit
b6c50838a3
2 changed files with 3 additions and 5 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue