aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author_manuel_ <manue.l@live.com.ar>2010-07-25 01:34:35 -0300
committer_manuel_ <manue.l@live.com.ar>2010-07-25 01:34:35 -0300
commit997b9e6b226ab0eca2636b040a2d05a2f1804ef0 (patch)
treeb8f12a4512ae07aa8ab056e88f188f80630f8232 /src
parent7308c112bbda58d1740b9493cc444ad8ce8fd18e (diff)
Fixed issues with The Second Trial (Q9686).
P.S: Now my System Date is right! --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/EasternKingdoms/eversong_woods.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/server/scripts/EasternKingdoms/eversong_woods.cpp b/src/server/scripts/EasternKingdoms/eversong_woods.cpp
index beb7acb3217..297c098aba8 100644
--- a/src/server/scripts/EasternKingdoms/eversong_woods.cpp
+++ b/src/server/scripts/EasternKingdoms/eversong_woods.cpp
@@ -440,19 +440,8 @@ void npc_secondTrialAI::JustDied(Unit* Killer)
// last kill quest complete for group
if (me->GetEntry() == CHAMPION_SUNSTRIKER)
{
- if (Group *pGroup = CAST_PLR(Killer)->GetGroup())
- {
- for (GroupReference *itr = pGroup->GetFirstMember(); itr != NULL; itr = itr->next())
- {
- Player *pGroupGuy = itr->getSource();
-
- // for any leave or dead (with not released body) group member at appropriate distance
- if (pGroupGuy && pGroupGuy->IsAtGroupRewardDistance(me) && !pGroupGuy->GetCorpse() && pGroupGuy->GetQuestStatus(QUEST_SECOND_TRIAL) == QUEST_STATUS_INCOMPLETE)
- pGroupGuy->CompleteQuest(QUEST_SECOND_TRIAL);
- }
- }
- else if (CAST_PLR(Killer)->GetQuestStatus(QUEST_SECOND_TRIAL) == QUEST_STATUS_INCOMPLETE)
- CAST_PLR(Killer)->CompleteQuest(QUEST_SECOND_TRIAL);
+ if (Killer->GetTypeId() == TYPEID_PLAYER)
+ Killer->ToPlayer()->GroupEventHappens(QUEST_SECOND_TRIAL,Killer);
}
}
}