aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQAston <none@none>2010-08-03 06:36:25 +0200
committerQAston <none@none>2010-08-03 06:36:25 +0200
commite7ee828fe1ec3267314377eb0164a53ca83829a5 (patch)
tree02fe88345590c93eea8f5bd56025477d01a16b8c
parent12c339f421ac2238c92b324a86e2b3c2d896bff5 (diff)
*Update spell_bonus_data for Garrote - by svetilo12.
*Fix build. --HG-- branch : trunk
-rw-r--r--sql/base/world_database.sql2
-rw-r--r--sql/updates/9148_world_spell_bonus_data.sql3
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp2
3 files changed, 5 insertions, 2 deletions
diff --git a/sql/base/world_database.sql b/sql/base/world_database.sql
index e9d3669e8af..221f3748440 100644
--- a/sql/base/world_database.sql
+++ b/sql/base/world_database.sql
@@ -5181,7 +5181,7 @@ INSERT INTO `spell_bonus_data` (`entry`,`direct_bonus`,`dot_bonus`,`ap_bonus`,`a
(27187, -1, -1, -1, 0.03, 'Rogue - Deadly Poison Rank 7($AP*0.12 / number of ticks)'),
(57969, -1, -1, -1, 0.03, 'Rogue - Deadly Poison Rank 8($AP*0.12 / number of ticks)'),
(57970, -1, -1, -1, 0.03, 'Rogue - Deadly Poison Rank 9($AP*0.12 / number of ticks)'),
-(703, -1, -1, -1, 0.02, 'Rogue - Garrote'),
+(703, -1, -1, -1, 0.07, 'Rogue - Garrote'),
(1776, -1, -1, 0.21, -1, 'Rogue - Gouge'),
(8680, -1, -1, 0.1, -1, 'Rogue - Instant Poison Rank 1'),
(8685, -1, -1, 0.1, -1, 'Rogue - Instant Poison Rank 2'),
diff --git a/sql/updates/9148_world_spell_bonus_data.sql b/sql/updates/9148_world_spell_bonus_data.sql
new file mode 100644
index 00000000000..786d0110313
--- /dev/null
+++ b/sql/updates/9148_world_spell_bonus_data.sql
@@ -0,0 +1,3 @@
+DELETE FROM `spell_bonus_data` WHERE `entry` IN (703);
+INSERT INTO `spell_bonus_data` (`entry`,`direct_bonus`,`dot_bonus`,`ap_bonus`,`ap_dot_bonus`,`comments`) VALUES
+(703, -1, -1, -1, 0.07, 'Rogue - Garrote');
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 7fb6d70f874..863ab9d809b 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -3637,7 +3637,7 @@ void Unit::_AddAura(UnitAura * aura, Unit * caster)
aura->SetIsSingleTarget(caster && IsSingleTargetSpell(aura->GetSpellProto()));
if (aura->IsSingleTarget())
{
- ASSERT((IsInWorld() && !IsDuringRemoveFromWorld()) || (GetCasterGUID() == GetGUID()));
+ ASSERT((IsInWorld() && !IsDuringRemoveFromWorld()) || (aura->GetCasterGUID() == GetGUID()));
// register single target aura
caster->GetSingleCastAuras().push_back(aura);
// remove other single target auras