diff options
author | Vincent_Michael <Vincent_Michael@gmx.de> | 2014-01-26 16:41:24 +0100 |
---|---|---|
committer | Vincent_Michael <Vincent_Michael@gmx.de> | 2014-01-26 16:42:02 +0100 |
commit | 79a2a0c434d24c7bf65a0625fad9dfe87533e2fd (patch) | |
tree | 2aee98739dfa8c4ace9be1df5a72325a70ffc208 /src | |
parent | d39b36b50f7810fc00b3e39ab7bca411e90fb83f (diff) |
Core/Spell: Fix logic fail in 96ae4caf6258882cf89ff6d4bb3ac5aa0a3474f7
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp | 4 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_dk.cpp | 5 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_paladin.cpp | 1 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_pet.cpp | 3 |
4 files changed, 5 insertions, 8 deletions
diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp index ad2d247c1e7..336599f2cc5 100644 --- a/src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp +++ b/src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp @@ -66,7 +66,7 @@ enum Phase PHASE_TWO = 2 }; -Position const SpawnBat[6] = +Position const SpawnBat[6] = { { -12291.6220f, -1380.2640f, 144.8304f, 5.483f }, { -12289.6220f, -1380.2640f, 144.8304f, 5.483f }, @@ -175,7 +175,7 @@ class boss_jeklik : public CreatureScript me->InterruptNonMeleeSpells(false); DoCastVictim(SPELL_CHAIN_MIND_FLAY); events.ScheduleEvent(EVENT_CHAIN_MIND_FLAY, urand(15000, 30000), 0, PHASE_TWO); - break; + break; case EVENT_GREATER_HEAL: me->InterruptNonMeleeSpells(false); DoCast(me, SPELL_GREATERHEAL); diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index 035a17dd4bf..e2e4d30541c 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -144,9 +144,8 @@ class spell_dk_anti_magic_shell_self : public SpellScriptLoader { // damage absorbed by Anti-Magic Shell energizes the DK with additional runic power. // This, if I'm not mistaken, shows that we get back ~20% of the absorbed damage as runic power. - absorbAmount *= 0.2f; - - GetTarget()->CastCustomSpell(SPELL_DK_RUNIC_POWER_ENERGIZE, SPELLVALUE_BASE_POINT0, absorbAmount, GetTarget(), true, NULL, aurEff); + int32 bp = CalculatePct(absorbAmount, 20); + GetTarget()->CastCustomSpell(SPELL_DK_RUNIC_POWER_ENERGIZE, SPELLVALUE_BASE_POINT0, bp, GetTarget(), true, NULL, aurEff); } void Register() OVERRIDE diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp index 6abe2fee1d3..fa03e8fe5e6 100644 --- a/src/server/scripts/Spells/spell_paladin.cpp +++ b/src/server/scripts/Spells/spell_paladin.cpp @@ -361,7 +361,6 @@ class spell_pal_divine_sacrifice : public SpellScriptLoader bool Load() OVERRIDE { - if (Unit* caster = GetCaster()) { if (caster->GetTypeId() == TYPEID_PLAYER) diff --git a/src/server/scripts/Spells/spell_pet.cpp b/src/server/scripts/Spells/spell_pet.cpp index 3d6853daf2c..a7742630ccd 100644 --- a/src/server/scripts/Spells/spell_pet.cpp +++ b/src/server/scripts/Spells/spell_pet.cpp @@ -1498,9 +1498,8 @@ public: // Ravenous Dead. Check just if owner has Ravenous Dead since it's effect is not an aura if (AuraEffect const* aurEff = owner->GetAuraEffect(SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE, SPELLFAMILY_DEATHKNIGHT, 3010, 0)) - { mod += aurEff->GetSpellInfo()->Effects[EFFECT_1].CalcValue()/100; // Ravenous Dead edits the original scale - } + // Glyph of the Ghoul if (AuraEffect const* aurEff = owner->GetAuraEffect(SPELL_DEATH_KNIGHT_GLYPH_OF_GHOUL, 0)) mod += aurEff->GetAmount()/100; |