4039 {
4041
4043 {
4044 uint32 petNumber = target->GetTemporaryUnsummonedPetNumber();
4045 target->SetTemporaryUnsummonedPetNumber(0);
4046
4047
4049
4050
4051 bool canFly = false;
4054 canFly = true;
4055
4057
4060 canFly = false;
4061
4064 {
4065 case 0:
4067 break;
4068 case 75:
4070 break;
4071 case 150:
4073 break;
4074 case 225:
4075 if (canFly)
4077 else
4079 break;
4080 case 300:
4081 if (canFly)
4082 {
4083 if (
_mount310 && target->Has310Flyer(
false))
4085 else
4087 }
4088 else
4090 break;
4091 default:
4092 break;
4093 }
4094
4095 if (mount)
4096 {
4098 target->CastSpell(target, mount, true);
4099 }
4100
4101 if (petNumber)
4102 target->SetTemporaryUnsummonedPetNumber(petNumber);
4103 }
4104 }
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_COLD_WEATHER_FLYING
Definition: spell_generic.cpp:3949
@ AREA_FLAG_NO_FLY_ZONE
Definition: DBCEnums.h:262
@ SKILL_RIDING
Definition: SharedDefines.h:2991
#define sBattlefieldMgr
Definition: BattlefieldMgr.h:77
@ SPELL_AURA_MOUNTED
Definition: SpellAuraDefines.h:141
uint32 GetVirtualMapForMapAndZone(uint32 mapid, uint32 zoneId)
Definition: DBCStores.cpp:703
DBCStorage< AreaTableEntry > sAreaTableStore(AreaTableEntryfmt)
Definition: Battlefield.h:204
bool CanFlyIn()
Return if we can use mount in battlefield.
Definition: Battlefield.h:340
static ObjectGuid const Empty
Definition: ObjectGuid.h:120
Definition: Player.h:1081
Aura * GetHitAura()
Definition: SpellScript.cpp:554
Player * GetHitPlayer()
Definition: SpellScript.cpp:471
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
void PreventHitAura()
Definition: SpellScript.cpp:568
Definition: DBCStructure.h:518
uint32 flags
Definition: DBCStructure.h:523