Skip to content

Commit

Permalink
[12666] Implement some spells required for quest 11198
Browse files Browse the repository at this point in the history
Auras 42581 and 42582 and effect 42578
  • Loading branch information
xfurry committed May 26, 2014
1 parent d76e940 commit ae6353c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
21 changes: 17 additions & 4 deletions src/game/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1647,10 +1647,23 @@ void Aura::TriggerSpell()
// case 41629: break;
// // Alert Drums
// case 42177: break;
// // Spout
// case 42581: break;
// // Spout
// case 42582: break;
case 42581: // Spout (left)
case 42582: // Spout (right)
{
float newAngle = target->GetOrientation();

if (auraId == 42581)
newAngle += 2 * M_PI_F / 100;
else
newAngle -= 2 * M_PI_F / 100;

newAngle = MapManager::NormalizeOrientation(newAngle);

target->SetFacingTo(newAngle);

target->CastSpell(target, auraSpellInfo->CalculateSimpleValue(m_effIndex), true);
return;
}
// // Return to the Spirit Realm
// case 44035: break;
// // Curse of Boundless Agony
Expand Down
9 changes: 9 additions & 0 deletions src/game/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7524,6 +7524,15 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
unitTarget->CastSpell(unitTarget, 41131, true);
break;
}
case 42578: // Cannon Blast
{
if (!unitTarget)
return;

int32 basePoints = m_spellInfo->CalculateSimpleValue(eff_idx);
unitTarget->CastCustomSpell(unitTarget, 42576, &basePoints, NULL, NULL, true);
return;
}
case 43365: // The Cleansing: Shrine Cast
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12665"
#define REVISION_NR "12666"
#endif // __REVISION_NR_H__

0 comments on commit ae6353c

Please sign in to comment.