Skip to content

Commit

Permalink
[c12864] 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

(based on commit [12666] - ae6353c)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
  • Loading branch information
xfurry committed Aug 12, 2014
1 parent bc90e2a commit 54b52a6
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 @@ -1711,10 +1711,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 = 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 @@ -7541,6 +7541,15 @@ void Spell::EffectScriptEffect(SpellEffectEntry const* effect)
unitTarget->CastSpell(unitTarget, 41131, true);
break;
}
case 42578: // Cannon Blast
{
if (!unitTarget)
return;

int32 basePoints = effect->CalculateSimpleValue();
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 "12863"
#define REVISION_NR "12864"
#endif // __REVISION_NR_H__

0 comments on commit 54b52a6

Please sign in to comment.