4065 {
4067
4069 {
4070 uint32 petNumber = target->GetTemporaryUnsummonedPetNumber();
4071 target->SetTemporaryUnsummonedPetNumber(0);
4072
4073
4075
4076
4077 bool canFly = false;
4080 canFly = true;
4081
4083
4086 canFly = false;
4087
4090 {
4091 case 0:
4093 break;
4094 case 75:
4096 break;
4097 case 150:
4099 break;
4100 case 225:
4101 if (canFly)
4103 else
4105 break;
4106 case 300:
4107 if (canFly)
4108 {
4109 if (
_mount310 && target->Has310Flyer(
false))
4111 else
4113 }
4114 else
4116 break;
4117 default:
4118 break;
4119 }
4120
4121 if (mount)
4122 {
4124 target->CastSpell(target, mount, true);
4125 }
4126
4127 if (petNumber)
4128 target->SetTemporaryUnsummonedPetNumber(petNumber);
4129 }
4130 }
std::uint32_t uint32
Definition: Define.h:107
#define sBattlefieldMgr
Definition: BattlefieldMgr.h:77
uint32 GetVirtualMapForMapAndZone(uint32 mapid, uint32 zoneId)
Definition: DBCStores.cpp:703
DBCStorage< AreaTableEntry > sAreaTableStore(AreaTableEntryfmt)
@ SPELL_AURA_MOUNTED
Definition: SpellAuraDefines.h:141
@ SPELL_COLD_WEATHER_FLYING
Definition: spell_generic.cpp:3975
@ SKILL_RIDING
Definition: SharedDefines.h:2991
@ AREA_FLAG_NO_FLY_ZONE
Definition: DBCEnums.h:262
Definition: Battlefield.h:206
bool CanFlyIn()
Return if we can use mount in battlefield.
Definition: Battlefield.h:342
static ObjectGuid const Empty
Definition: ObjectGuid.h:120
Definition: Player.h:1064
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:519
uint32 flags
Definition: DBCStructure.h:524