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

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -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);

View File

@@ -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);

View File

@@ -4563,6 +4563,14 @@ void Spell::EffectScriptEffect(uint32 effIndex)
{
switch(m_spellInfo->Id)
{
// Dispelling Analysis
case 37028:
{
if (unitTarget->HasAura(36904))
unitTarget->RemoveAurasDueToSpell(36904);
return;
}
case 45204: // Clone Me!
case 41055: // Copy Weapon
case 45206: // Copy Off-hand Weapon