Core/Spells: Implement TARGET_DEST_CHANNEL_CASTER(106) and TARGET_GAMEOBJECT_AREA_PATH(108). Rename TARGET_UNIT_CHANNEL to TARGET_UNIT_CHANNEL_TARGET, TARGET_DEST_CHANNEL to TARGET_DEST_CHANNEL_TARGET

--HG--
branch : trunk
This commit is contained in:
QAston
2010-08-18 15:04:00 +02:00
parent 9d45f29593
commit 5e78e222c1
5 changed files with 29 additions and 24 deletions
+1 -10
View File
@@ -4810,15 +4810,6 @@ void Spell::EffectScriptEffect(uint32 effIndex)
cTarget->RemoveCorpse();
break;
}
/*// Flame Crash
case 41126:
{
if (!unitTarget)
return;
unitTarget->CastSpell(unitTarget, 41131, true);
break;
}*/
case 48025: // Headless Horseman's Mount
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
@@ -7310,7 +7301,7 @@ void Spell::EffectRechargeManaGem(uint32 /*i*/)
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
Player *player = (Player*)m_caster;
Player *player = m_caster->ToPlayer();
if (!player)
return;