Core/Spell: Fix logic fail in 96ae4caf62

This commit is contained in:
Vincent_Michael
2014-01-26 16:41:24 +01:00
parent d39b36b50f
commit 79a2a0c434
4 changed files with 5 additions and 8 deletions

View File

@@ -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);

View File

@@ -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

View File

@@ -361,7 +361,6 @@ class spell_pal_divine_sacrifice : public SpellScriptLoader
bool Load() OVERRIDE
{
if (Unit* caster = GetCaster())
{
if (caster->GetTypeId() == TYPEID_PLAYER)

View File

@@ -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;