mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[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:
parent
c99a849eb9
commit
bde638ace7
4 changed files with 59 additions and 20 deletions
|
|
@ -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:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue