Spell::EffectQuestComplete Автор-KiriX
Code
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 096dae3..70ea439 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -7182,10 +7182,10 @@ 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;
+ Player *_player = (Player*)unitTarget;
uint32 quest_id = m_spellInfo->EffectMiscValue[eff_idx];
_player->AreaExploredOrEventHappens(quest_id);
Arena time limit (27min)(переписанная мной по ласт реву)
Code
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -1387,6 +1387,12 @@ void BattleGround::UpdatePlayerScore
}
break;
//used only in EY, but in MSG_PVP_LOG_DATA opcode
+ case SCORE_DAMAGE_DONE: // Damage Done
+ itr->second->DamageDone += value;
+ break;
+ case SCORE_HEALING_DONE: // Healing Done
+ itr->second->HealingDone += value;
+ break;
@@ -1406,11 +1412,7 @@ uint32 BattleGround::GetPlayerScore
- case SCORE_DAMAGE_DONE: // Damage Done
- return itr->second->DamageDone;
- case SCORE_HEALING_DONE: // Healing Done
- return itr->second->HealingDone;
- default:
+ default: