[12146] Implement spell 30769

This commit is contained in:
Schmoozerd 2012-08-29 23:15:47 +02:00 committed by Antz
parent c8ebd1678e
commit 705f716cb1
4 changed files with 12 additions and 2 deletions

View file

@ -7967,7 +7967,7 @@ bool PlayerCondition::Meets(Player const* player) const
// Check that on proper map
if (dbcEntry1->mapId != player->GetMapId())
{
sLog.outErrorDb("CONDITION_COMPLETED_ENCOUNTER (entry %u, DungeonEncounterEntry -value1- %u) is used on wrong map (used on Map %u) by %s", m_entry, m_value1, player->GetMapId(), player->GetGuidStr().c_str());
sLog.outErrorDb("CONDITION_COMPLETED_ENCOUNTER (entry %u, DungeonEncounterEntry %u) is used on wrong map (used on Map %u) by %s", m_entry, m_value1, player->GetMapId(), player->GetGuidStr().c_str());
return false;
}
// Select matching difficulties

View file

@ -1705,6 +1705,7 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
case 804: // Explode Bug
case 23138: // Gate of Shazzrah
case 28560: // Summon Blizzard
case 30769: // Pick Red Riding Hood
case 31347: // Doom TODO: exclude top threat target from target selection
case 33711: // Murmur's Touch
case 38794: // Murmur's Touch (h)

View file

@ -7058,6 +7058,15 @@ void Spell::EffectScriptEffect(SpellEffectEntry const* effect)
break;
}
case 30769: // Pick Red Riding Hood
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
// cast Little Red Riding Hood
m_caster->CastSpell(unitTarget, 30768, true);
break;
}
case 30918: // Improved Sprint
{
if (!unitTarget)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12145"
#define REVISION_NR "12146"
#endif // __REVISION_NR_H__