Skip to content

Commit

Permalink
[12207] Implement some spell effects and target limitation for Magthe…
Browse files Browse the repository at this point in the history
…ridon

* Spell ids: 30541, 30572
  • Loading branch information
xfurry committed Oct 7, 2012
1 parent 9e13b5c commit ea54b83
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/game/Spell.cpp
Expand Up @@ -1595,6 +1595,8 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
case 804: // Explode Bug
case 23138: // Gate of Shazzrah
case 28560: // Summon Blizzard
case 30541: // Blaze (Magtheridon)
case 30572: // Quake (Magtheridon)
case 30769: // Pick Red Riding Hood
case 30835: // Infernal Relay
case 31347: // Doom TODO: exclude top threat target from target selection
Expand Down
8 changes: 8 additions & 0 deletions src/game/SpellEffects.cpp
Expand Up @@ -7111,6 +7111,14 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)

break;
}
case 30541: // Blaze
{
if (!unitTarget)
return;

unitTarget->CastSpell(unitTarget, 30542, true);
break;
}
case 30769: // Pick Red Riding Hood
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
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 "12206"
#define REVISION_NR "12207"
#endif // __REVISION_NR_H__

0 comments on commit ea54b83

Please sign in to comment.