aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLopin <davca.hr@seznam.cz>2011-09-08 13:50:01 +0200
committerLopin <davca.hr@seznam.cz>2011-09-08 13:50:01 +0200
commitd5cbc973730b2d52644c2090e000ef6f096b8c44 (patch)
tree4a05d1b3fb0295304d5558538e3febad6b68ef90
parenteddcb8ffbf3f7f8ae74ce7ef7972626303f0de3c (diff)
Core/Spells: Changed targets of Lifebinder's Gift (search for entry instead of area ally). For conditions thanks Anubisss
-rw-r--r--sql/updates/world/2011_09_08_00_world_conditions.sql17
-rwxr-xr-xsrc/server/game/Spells/SpellMgr.cpp5
2 files changed, 22 insertions, 0 deletions
diff --git a/sql/updates/world/2011_09_08_00_world_conditions.sql b/sql/updates/world/2011_09_08_00_world_conditions.sql
new file mode 100644
index 00000000000..07eebd56c7e
--- /dev/null
+++ b/sql/updates/world/2011_09_08_00_world_conditions.sql
@@ -0,0 +1,17 @@
+DELETE FROM `conditions` WHERE `sourceEntry` IN (62584,64185);
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`)
+VALUES
+(13,0,62584,0,18,1,33202,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,62584,0,18,1,32919,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,62584,0,18,1,32916,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,62584,0,18,1,32906,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,62584,0,18,1,33203,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,62584,0,18,1,32918,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,62584,0,18,1,33215,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,64185,0,18,1,33202,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,64185,0,18,1,32919,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,64185,0,18,1,32916,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,64185,0,18,1,32906,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,64185,0,18,1,33203,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,64185,0,18,1,32918,0,0,'','target for Lifebinder\'s Gift'),
+(13,0,64185,0,18,1,33215,0,0,'','target for Lifebinder\'s Gift');
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 03813f07afe..ece4bd36da1 100755
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -3232,6 +3232,11 @@ void SpellMgr::LoadDbcDataCorrections()
// that will be clear if we get more spells with problem like this
spellInfo->AttributesEx |= SPELL_ATTR1_DISPEL_AURAS_ON_IMMUNITY;
break;
+ case 62584: // Lifebinder's Gift
+ case 64185: // Lifebinder's Gift
+ spellInfo->EffectImplicitTargetB[1] = TARGET_UNIT_NEARBY_ENTRY;
+ spellInfo->EffectImplicitTargetB[2] = TARGET_UNIT_NEARBY_ENTRY;
+ break;
// ENDOF ULDUAR SPELLS
//
// TRIAL OF THE CRUSADER SPELLS