[7476] Implement druid's talent 61336.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Some improvements added to patch. Related cleanups.
This commit is contained in:
Lightguard 2009-03-17 01:25:11 +03:00 committed by VladimirMangos
parent c99a849eb9
commit bde638ace7
4 changed files with 59 additions and 20 deletions

View file

@ -4305,6 +4305,20 @@ SpellCastResult Spell::CheckCast(bool strict)
{
switch(m_spellInfo->EffectApplyAuraName[i])
{
case SPELL_AURA_DUMMY:
{
//custom check
switch(m_spellInfo->Id)
{
case 61336:
if(m_caster->GetTypeId()!=TYPEID_PLAYER || !((Player*)m_caster)->IsInFeralForm())
return SPELL_FAILED_ONLY_SHAPESHIFT;
break;
default:
break;
}
break;
}
case SPELL_AURA_MOD_POSSESS:
case SPELL_AURA_MOD_CHARM:
{