Functions Clean Up - by Drethek

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-07-23 19:43:21 +02:00
parent 174458293a
commit 95b5da8cdf
5 changed files with 12 additions and 5 deletions
@@ -261,8 +261,7 @@ struct TRINITY_DLL_DECL npc_daranelleAI : public ScriptedAI
{ {
DoScriptText(SAY_SPELL_INFLUENCE, m_creature, who); DoScriptText(SAY_SPELL_INFLUENCE, m_creature, who);
//TODO: Move the below to updateAI and run if this statement == true //TODO: Move the below to updateAI and run if this statement == true
CAST_PLR(who)->KilledMonsterCredit(21511, m_creature->GetGUID()); DoCast(who,37028,true);
CAST_PLR(who)->RemoveAurasDueToSpell(36904);
} }
} }
@@ -1103,7 +1103,7 @@ struct TRINITY_DLL_DECL npc_dkc1_gothikAI : public ScriptedAI
{ {
if(CAST_PLR(owner)->GetQuestStatus(12698) == QUEST_STATUS_INCOMPLETE) if(CAST_PLR(owner)->GetQuestStatus(12698) == QUEST_STATUS_INCOMPLETE)
{ {
CAST_PLR(owner)->KilledMonsterCredit(28845, me->GetGUID()); DoCast(owner, 52517, true);
who->setDeathState(DEAD); who->setDeathState(DEAD);
} }
} }
@@ -114,7 +114,7 @@ struct TRINITY_DLL_DECL npc_greengill_slaveAI : public ScriptedAI
{ {
Unit* plr = Unit::GetUnit((*m_creature), PlayerGUID); Unit* plr = Unit::GetUnit((*m_creature), PlayerGUID);
if(plr && CAST_PLR(plr)->GetQuestStatus(QUESTG) == QUEST_STATUS_INCOMPLETE) 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); DoCast(m_creature, ENRAGE);
Unit* Myrmidon = me->FindNearestCreature(DM, 70); 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); Player* plr = Unit::GetPlayer(PlayerGUID);
if(plr && plr->GetQuestStatus(10854) == QUEST_STATUS_INCOMPLETE) 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; float x,y,z;
m_creature->GetPosition(x,y,z); m_creature->GetPosition(x,y,z);
+8
View File
@@ -4563,6 +4563,14 @@ void Spell::EffectScriptEffect(uint32 effIndex)
{ {
switch(m_spellInfo->Id) switch(m_spellInfo->Id)
{ {
// Dispelling Analysis
case 37028:
{
if (unitTarget->HasAura(36904))
unitTarget->RemoveAurasDueToSpell(36904);
return;
}
case 45204: // Clone Me! case 45204: // Clone Me!
case 41055: // Copy Weapon case 41055: // Copy Weapon
case 45206: // Copy Off-hand Weapon case 45206: // Copy Off-hand Weapon