4063 {
4065
4067 {
4068 uint32 petNumber = target->GetTemporaryUnsummonedPetNumber();
4069 target->SetTemporaryUnsummonedPetNumber(0);
4070
4071
4073
4074
4075 bool canFly = false;
4078 canFly = true;
4079
4081
4084 canFly = false;
4085
4088 {
4089 case 0:
4091 break;
4092 case 75:
4094 break;
4095 case 150:
4097 break;
4098 case 225:
4099 if (canFly)
4101 else
4103 break;
4104 case 300:
4105 if (canFly)
4106 {
4107 if (
_mount310 && target->Has310Flyer(
false))
4109 else
4111 }
4112 else
4114 break;
4115 default:
4116 break;
4117 }
4118
4119 if (mount)
4120 {
4122 target->CastSpell(target, mount, true);
4123 }
4124
4125 if (petNumber)
4126 target->SetTemporaryUnsummonedPetNumber(petNumber);
4127 }
4128 }
uint32 GetVirtualMapForMapAndZone(uint32 mapid, uint32 zoneId)
Definition: DBCStores.cpp:703
DBCStorage< AreaTableEntry > sAreaTableStore(AreaTableEntryfmt)
#define sBattlefieldMgr
Definition: BattlefieldMgr.h:77
@ SPELL_AURA_MOUNTED
Definition: SpellAuraDefines.h:141
@ SPELL_COLD_WEATHER_FLYING
Definition: spell_generic.cpp:3973
@ AREA_FLAG_NO_FLY_ZONE
Definition: DBCEnums.h:262
@ SKILL_RIDING
Definition: SharedDefines.h:2991
std::uint32_t uint32
Definition: Define.h:107
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:1063
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