Skip to content

Commit

Permalink
[12205] Implement some spells used in the Jan'alai encounter
Browse files Browse the repository at this point in the history
  • Loading branch information
xfurry authored and Salja committed Sep 9, 2012
1 parent de61d3e commit a0265a8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions src/game/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1476,6 +1476,23 @@ void Spell::EffectDummy(SpellEffectEntry const* effect)

return;
}
case 42628: // Fire Bomb (throw)
{
if (!unitTarget)
return;

unitTarget->CastSpell(unitTarget, 42629, true);
return;
}
case 42631: // Fire Bomb (explode)
{
if (!unitTarget)
return;

unitTarget->RemoveAurasDueToSpell(42629);
unitTarget->CastSpell(unitTarget, 42630, true);
return;
}
case 42793: // Burn Body
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT || m_caster->GetTypeId() != TYPEID_PLAYER)
Expand Down Expand Up @@ -1523,6 +1540,22 @@ void Spell::EffectDummy(SpellEffectEntry const* effect)
m_caster->CastSpell(m_caster, 43072, true);
return;
}
case 43096: // Summon All Players
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;

m_caster->CastSpell(unitTarget, 43097, true);
return;
}
case 43144: // Hatch All Eggs
{
if (!unitTarget)
return;

unitTarget->CastSpell(unitTarget, 42493, true, NULL, NULL, m_caster->GetObjectGuid());
return;
}
case 43209: // Place Ram Meat
{
if (!unitTarget)
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 "12204"
#define REVISION_NR "12205"
#endif // __REVISION_NR_H__

0 comments on commit a0265a8

Please sign in to comment.