All pastes #611224 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-07-09 20:38 UTC
rendered paste body
Index: src/game/Spell.cpp
===================================================================
--- src/game/Spell.cpp	(revision 4057)
+++ src/game/Spell.cpp	(working copy)
@@ -691,6 +690,7 @@
             if(m_spellInfo->Effect[i] != SPELL_EFFECT_DUEL) TagUnitMap.push_back(m_caster);
         }break;
         case TARGET_SINGLE_PARTY:
+        case TARGET_SINGLE_ENEMY:
         {
             if(m_targets.getUnitTarget())
                 TagUnitMap.push_back(m_targets.getUnitTarget());
Index: src/game/Spell.h
===================================================================
--- src/game/Spell.h	(revision 4057)
+++ src/game/Spell.h	(working copy)
@@ -86,6 +86,7 @@
     TARGET_CURRENT_SELECTED_ENEMY      = 53,
     TARGET_SINGLE_FRIEND_2             = 57,
     TARGET_AREAEFFECT_PARTY_AND_CLASS  = 61,
+    TARGET_SINGLE_ENEMY                = 77,
 };
 
 enum SpellCastFlags
Index: src/game/SpellAuras.cpp
===================================================================
--- src/game/SpellAuras.cpp	(revision 4057)
+++ src/game/SpellAuras.cpp	(working copy)
@@ -1102,11 +1114,12 @@
 
     if(!apply)
     {
-        if( IsQuestTameSpell(GetId()) && caster && caster->isAlive() && m_target && m_target->isAlive())
+        if( (IsQuestTameSpell(GetId()) || GetId()==1515) && caster && caster->isAlive() && m_target && m_target->isAlive())
         {
             uint32 finalSpelId = 0;
             switch(GetId())
             {
+                case  1515: finalSpelId = 13481; break;
                 case 19548: finalSpelId = 19597; break;
                 case 19674: finalSpelId = 19677; break;
                 case 19687: finalSpelId = 19676; break;