mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Functions Clean Up - by Drethek
--HG-- branch : trunk
This commit is contained in:
@@ -261,8 +261,7 @@ struct TRINITY_DLL_DECL npc_daranelleAI : public ScriptedAI
|
||||
{
|
||||
DoScriptText(SAY_SPELL_INFLUENCE, m_creature, who);
|
||||
//TODO: Move the below to updateAI and run if this statement == true
|
||||
CAST_PLR(who)->KilledMonsterCredit(21511, m_creature->GetGUID());
|
||||
CAST_PLR(who)->RemoveAurasDueToSpell(36904);
|
||||
DoCast(who,37028,true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1103,7 +1103,7 @@ struct TRINITY_DLL_DECL npc_dkc1_gothikAI : public ScriptedAI
|
||||
{
|
||||
if(CAST_PLR(owner)->GetQuestStatus(12698) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
CAST_PLR(owner)->KilledMonsterCredit(28845, me->GetGUID());
|
||||
DoCast(owner, 52517, true);
|
||||
who->setDeathState(DEAD);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ struct TRINITY_DLL_DECL npc_greengill_slaveAI : public ScriptedAI
|
||||
{
|
||||
Unit* plr = Unit::GetUnit((*m_creature), PlayerGUID);
|
||||
if(plr && CAST_PLR(plr)->GetQuestStatus(QUESTG) == QUEST_STATUS_INCOMPLETE)
|
||||
CAST_PLR(plr)->KilledMonsterCredit(25086, m_creature->GetGUID());
|
||||
DoCast(plr, 45110, true);
|
||||
}
|
||||
DoCast(m_creature, ENRAGE);
|
||||
Unit* Myrmidon = me->FindNearestCreature(DM, 70);
|
||||
|
||||
@@ -269,7 +269,7 @@ struct TRINITY_DLL_DECL mob_enslaved_netherwing_drakeAI : public ScriptedAI
|
||||
Player* plr = Unit::GetPlayer(PlayerGUID);
|
||||
if(plr && plr->GetQuestStatus(10854) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
plr->KilledMonsterCredit(22316, m_creature->GetGUID());
|
||||
DoCast(plr, SPELL_FORCE_OF_NELTHARAKU, true);
|
||||
/*
|
||||
float x,y,z;
|
||||
m_creature->GetPosition(x,y,z);
|
||||
|
||||
Reference in New Issue
Block a user