[12660] Implement mount capabilities by Shauren.

Also  update AreaFlags enum, implement mount capabilities check at teleport.

----------------------------
commit is partially based on ec5eabdc69
This commit is contained in:
sanctum32 2013-08-05 23:43:55 +03:00 committed by Antz
parent a253344a02
commit 46d4f07052
8 changed files with 105 additions and 36 deletions

View file

@ -9428,6 +9428,16 @@ int32 Unit::CalculateSpellDamage(Unit const* target, SpellEntry const* spellProt
if(!spellEffect)
return 0;
switch (spellEffect->EffectApplyAuraName)
{
case SPELL_AURA_MOUNTED:
if (MountCapabilityEntry const* mountCapability = GetMountCapability(uint32(spellEffect->EffectMiscValueB)))
return int32(mountCapability->Id);
break;
default:
break;
}
Player* unitPlayer = (GetTypeId() == TYPEID_PLAYER) ? (Player*)this : NULL;
uint32 level = getLevel();