Created
August 8, 2012 12:22
-
-
Save Nighoo/3294739 to your computer and use it in GitHub Desktop.
Curing the Sick - 6124
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/scripts/world/spell_scripts.cpp b/scripts/world/spell_scripts.cpp | |
index 96a7257..ff00324 100644 | |
--- a/scripts/world/spell_scripts.cpp | |
+++ b/scripts/world/spell_scripts.cpp | |
@@ -114,6 +114,7 @@ enum | |
// quest 6124/6129 | |
SPELL_APPLY_SALVE = 19512, | |
+ SPELL_SICKLY_CRITTER_AURA = 19502, | |
NPC_SICKLY_DEER = 12298, | |
NPC_SICKLY_GAZELLE = 12296, | |
@@ -279,10 +306,18 @@ bool EffectDummyCreature_spell_dummy_npc(Unit* pCaster, uint32 uiSpellId, SpellE | |
return true; | |
if (pCreatureTarget->GetEntry() == NPC_SICKLY_DEER && ((Player*)pCaster)->GetTeam() == ALLIANCE) | |
+ { | |
pCreatureTarget->UpdateEntry(NPC_CURED_DEER); | |
+ pCreatureTarget->RemoveAurasDueToSpell(SPELL_SICKLY_CRITTER_AURA); | |
+ ((Player*)pCaster)->CastedCreatureOrGO(NPC_SICKLY_DEER, pCreatureTarget->GetObjectGuid(), SPELL_APPLY_SALVE); | |
+ } | |
if (pCreatureTarget->GetEntry() == NPC_SICKLY_GAZELLE && ((Player*)pCaster)->GetTeam() == HORDE) | |
+ { | |
pCreatureTarget->UpdateEntry(NPC_CURED_GAZELLE); | |
+ pCreatureTarget->RemoveAurasDueToSpell(SPELL_SICKLY_CRITTER_AURA); | |
+ ((Player*)pCaster)->CastedCreatureOrGO(NPC_SICKLY_GAZELLE, pCreatureTarget->GetObjectGuid(), SPELL_APPLY_SALVE); | |
+ } | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment