Core/Spells: Allow non-skill-based flying mounts to be used in designated areas.

- Flying mounts that are not in the "SKILL_MOUNT"-tree and area-restricted can now be used properly (ex. 64749 - Loaned Gryphon).
- Remove isKnowHowFlyIn()-function (useless and deprecated since this is handled properly in the spellsystem).
Massive thanks to rat for extremely good help and support on fixing this (most of this is his work).
This commit is contained in:
click committed 2015-04-07 21:26:23 +02:00
1 parent dcd36c1bf6
commit 0e3607df5b
3 files changed
+10 -12

No files matched your search

@@ -25085,13 +25085,6 @@ uint32 Player::CalculateTalentsPoints() const
return uint32(talentPointsForLevel * sWorld->getRate(RATE_TALENT));
}
bool Player::IsKnowHowFlyIn(uint32 mapid, uint32 zone) const
{
// continent checked in SpellInfo::CheckLocation at cast and area update
uint32 v_map = GetVirtualMapForMapAndZone(mapid, zone);
return v_map != 571 || HasSpell(54197); // Cold Weather Flying
}
void Player::LearnSpellHighestRank(uint32 spellid)
{
LearnSpell(spellid, false);