1 parent
0148832b32
commit
a961177d20
1 file changed
+6
-5
@@ -208,22 +208,23 @@ class spell_q6124_6129_apply_salve : public SpellScriptLoader
|
||||
if (GetCastItem())
|
||||
if (Creature* creatureTarget = GetHitCreature())
|
||||
{
|
||||
uint32 uiNewEntry = 0;
|
||||
uint32 newEntry = 0;
|
||||
switch (caster->GetTeam())
|
||||
{
|
||||
case HORDE:
|
||||
if (creatureTarget->GetEntry() == NPC_SICKLY_GAZELLE)
|
||||
uiNewEntry = NPC_CURED_GAZELLE;
|
||||
newEntry = NPC_CURED_GAZELLE;
|
||||
break;
|
||||
case ALLIANCE:
|
||||
if (creatureTarget->GetEntry() == NPC_SICKLY_DEER)
|
||||
uiNewEntry = NPC_CURED_DEER;
|
||||
newEntry = NPC_CURED_DEER;
|
||||
break;
|
||||
}
|
||||
if (uiNewEntry)
|
||||
if (newEntry)
|
||||
{
|
||||
creatureTarget->UpdateEntry(uiNewEntry);
|
||||
creatureTarget->UpdateEntry(newEntry);
|
||||
creatureTarget->DespawnOrUnsummon(DESPAWN_TIME);
|
||||
caster->KilledMonsterCredit(newEntry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user