Skip to content

Commit

Permalink
[c12733] fix compile
Browse files Browse the repository at this point in the history
Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>
  • Loading branch information
Dramacydal committed Aug 19, 2013
1 parent 337feaa commit 3121d7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/game/SpellEffects.cpp
Expand Up @@ -7445,7 +7445,7 @@ void Spell::EffectScriptEffect(SpellEffectEntry const* effect)
if (!unitTarget)
return;

m_caster->CastSpell(unitTarget, m_spellInfo->CalculateSimpleValue(eff_idx), true);
m_caster->CastSpell(unitTarget, effect->CalculateSimpleValue(), true);
return;
}
case 41055: // Copy Weapon
Expand Down Expand Up @@ -7772,7 +7772,7 @@ void Spell::EffectScriptEffect(SpellEffectEntry const* effect)
if (!unitTarget || m_caster->GetTypeId() != TYPEID_PLAYER)
return;

unitTarget->CastSpell(m_caster, m_spellInfo->CalculateSimpleValue(eff_idx), true);
unitTarget->CastSpell(m_caster, effect->CalculateSimpleValue(), true);
return;
}
case 45717: // Fog of Corruption (player buff)
Expand Down Expand Up @@ -9336,7 +9336,7 @@ void Spell::EffectActivateObject(SpellEffectEntry const* effect)
if (!gameObjTarget)
return;

uint32 misc_value = m_spellInfo->EffectMiscValue[eff_idx];
uint32 misc_value = uint32(effect->EffectMiscValue);

switch (misc_value)
{
Expand All @@ -9353,7 +9353,7 @@ void Spell::EffectActivateObject(SpellEffectEntry const* effect)
{
static ScriptInfo activateCommand = generateActivateCommand();

int32 delay_secs = m_spellInfo->CalculateSimpleValue(eff_idx);
int32 delay_secs = effect->CalculateSimpleValue();

gameObjTarget->GetMap()->ScriptCommandStart(activateCommand, delay_secs, m_caster, gameObjTarget);
break;
Expand Down Expand Up @@ -10503,7 +10503,7 @@ void Spell::EffectBind(SpellEffectEntry const* effect)

Player* player = (Player*)unitTarget;

uint32 area_id = m_spellInfo->EffectMiscValue[eff_idx];
uint32 area_id = uint32(effect->EffectMiscValue);
WorldLocation loc;
if (effect->EffectImplicitTargetA == TARGET_TABLE_X_Y_Z_COORDINATES ||
effect->EffectImplicitTargetB == TARGET_TABLE_X_Y_Z_COORDINATES)
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12732"
#define REVISION_NR "12733"
#endif // __REVISION_NR_H__

0 comments on commit 3121d7d

Please sign in to comment.