mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +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)
|
||||
{
|
||||
if(m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||
if (unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
Player *_player = (Player*)m_caster;
|
||||
|
||||
uint32 quest_id = m_spellInfo->EffectMiscValue[eff_idx];
|
||||
_player->AreaExploredOrEventHappens(quest_id);
|
||||
((Player*)unitTarget)->AreaExploredOrEventHappens(quest_id);
|
||||
}
|
||||
|
||||
void Spell::EffectSelfResurrect(SpellEffectIndex eff_idx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue