mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Core/Quests: Fixed remaining issues with quest crediting (note: previous commits did not introduce issues, only revealed them)
Core/DBLayer: Fixed more compile warnings Core/Spells: Corrected code style from revision 634af79146 Closes issue #3956. --HG-- branch : trunk
This commit is contained in:
@@ -763,10 +763,8 @@ public:
|
||||
if (owner->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if (CAST_PLR(owner)->GetQuestStatus(12698) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
//CAST_CRE(who)->CastSpell(owner, 52517, true);
|
||||
CAST_PLR(owner)->KilledMonsterCredit(GHOULS, me->GetGUID());
|
||||
}
|
||||
CAST_CRE(who)->CastSpell(owner, 52517, true);
|
||||
|
||||
//Todo: Creatures must not be removed, but, must instead
|
||||
// stand next to Gothik and be commanded into the pit
|
||||
// and dig into the ground.
|
||||
|
||||
@@ -166,7 +166,7 @@ public:
|
||||
case GOSSIP_ACTION_INFO_DEF + 6:
|
||||
pPlayer->SEND_GOSSIP_MENU(7761, pCreature->GetGUID());
|
||||
//'kill' our trigger to update quest status
|
||||
pPlayer->KilledMonsterCredit(TRIGGER_RUTGAR, pCreature->GetGUID());
|
||||
pPlayer->KilledMonsterCredit(TRIGGER_RUTGAR, 0);
|
||||
break;
|
||||
|
||||
case GOSSIP_ACTION_INFO_DEF + 9:
|
||||
@@ -192,7 +192,7 @@ public:
|
||||
case GOSSIP_ACTION_INFO_DEF + 14:
|
||||
pPlayer->SEND_GOSSIP_MENU(7767, pCreature->GetGUID());
|
||||
//'kill' our trigger to update quest status
|
||||
pPlayer->KilledMonsterCredit(TRIGGER_FRANKAL, pCreature->GetGUID());
|
||||
pPlayer->KilledMonsterCredit(TRIGGER_FRANKAL, 0);
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -151,7 +151,7 @@ public:
|
||||
|
||||
if (Player* pPlr = Unit::GetPlayer(*me, uiPlayerGUID))
|
||||
{
|
||||
pPlr->KilledMonsterCredit(NPC_EVENT_PINGER, me->GetGUID());
|
||||
pPlr->KilledMonsterCredit(NPC_EVENT_PINGER, 0);
|
||||
|
||||
if (GameObject* pGo = pPlr->FindNearestGameObject(GO_CARCASS, 10))
|
||||
pGo->Delete();
|
||||
@@ -395,7 +395,7 @@ public:
|
||||
{
|
||||
Player* plr = Unit::GetPlayer(*me, PlayerGUID);
|
||||
if (plr && plr->GetQuestStatus(11020) == QUEST_STATUS_INCOMPLETE)
|
||||
plr->KilledMonsterCredit(23209, me->GetGUID());
|
||||
plr->KilledMonsterCredit(23209, 0);
|
||||
}
|
||||
PoisonTimer = 0;
|
||||
me->DealDamage(me, me->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
|
||||
|
||||
@@ -319,7 +319,7 @@ public:
|
||||
if (rand()%100 < 25)
|
||||
{
|
||||
me->SummonCreature(QUEST_TARGET, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 60000);
|
||||
CAST_PLR(Killer)->KilledMonsterCredit(QUEST_TARGET, me->GetGUID());
|
||||
CAST_PLR(Killer)->KilledMonsterCredit(QUEST_TARGET, 0);
|
||||
}
|
||||
else
|
||||
me->SummonCreature(netherwebVictims[rand()%6], 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 60000);
|
||||
|
||||
@@ -361,7 +361,7 @@ public:
|
||||
if(Creature* pTarget = GetHitCreature())
|
||||
{
|
||||
pPlayer->CastSpell(pPlayer, SPELL_TRIGGER_AID_OF_THE_EARTHEN, true, NULL);
|
||||
pPlayer->KilledMonsterCredit(NPC_FALLEN_EARTHEN_DEFENDER, pTarget->GetGUID());
|
||||
pPlayer->KilledMonsterCredit(NPC_FALLEN_EARTHEN_DEFENDER, 0);
|
||||
pTarget->ForcedDespawn();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user