142 caster->
CastSpell(target, disguiseSpellId,
true, NULL,
this);
159 caster->
CastSpell(target, disguiseSpellId,
true, NULL,
this);
173 newAura->SetStackAmount(newAura->GetSpellInfo()->StackAmount);
185 caster->
CastSpell(target, finalSpellId,
true, NULL,
this);
198 bg->RemovePlayerFromResurrectQueue(target->
GetGUID());
200 bf->RemovePlayerFromResurrectQueue(target->
GetGUID());
217 target->
CastSpell(target, spellId,
true, NULL,
this);
261 if (
GetId() == 61777)
361 sObjectMgr->GetCreatureModelRandomGender(&displayID);
411 uint32 noSpaceForCount = 0;
418 count -= noSpaceForCount;
565 if (!triggeredSpellInfo)
580 caster->
CastSpell(target, triggeredSpellId,
true, NULL,
this);
592 if (
Aura* triggeredAura = target->
GetAura(triggeredSpellId, casterGUID))
593 triggeredAura->ModStackAmount(
GetBase()->GetStackAmount() - triggeredAura->GetStackAmount());
655 if (
uint32 spellId = overrideSpells->spellId[i])
663 if (
uint32 spellId = overrideSpells->spellId[i])
744 weather->SendWeatherUpdateToPlayer(target);
848 bool hasSceneID = sceneTemplate->
SceneId;
851 uint32 sceneInstanceID = 0;
852 if (!sceneInstanceID)
857 data << float(PositionY);
858 data << float(PositionZ);
859 data << float(PositionX);
865 data.
WriteBit(!hasSceneScriptPackageID);
875 data << float(PositionO);
879 data <<
uint32(sceneInstanceID);
880 if (hasSceneScriptPackageID)
890 data <<
uint32(sceneInstanceID);
DB2Storage< SceneScriptPackageEntry > sSceneScriptPackageStore(SceneScriptPackagefmt)
DBCStorage< UnitPowerBarEntry > sUnitPowerBarStore(UnitPowerBarfmt)
DBCStorage< OverrideSpellDataEntry > sOverrideSpellDataStore(OverrideSpellDatafmt)
#define MAX_OVERRIDE_SPELL
@ EQUIP_ERR_ITEM_NOT_FOUND
#define SF_LOG_ERROR(filterType__,...)
std::vector< ItemPosCount > ItemPosCountVec
@ PLAYER_FIELD_BYTE_RELEASE_TIMER
@ UNIT_DYNFLAG_SPECIALINFO
@ SPELLFAMILY_DEATHKNIGHT
@ SPELL_AURA_MOD_FAKE_INEBRIATE
@ SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED
@ AURA_EFFECT_HANDLE_STAT
@ AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK
@ AURA_EFFECT_HANDLE_SEND_FOR_CLIENT_MASK
@ AURA_EFFECT_HANDLE_REAPPLY
@ AURA_EFFECT_HANDLE_REAL
@ UNIT_FLAG_PVP_ATTACKABLE
@ UNIT_FLAG2_COMPREHEND_LANG
@ UNIT_FIELD_MOUNT_DISPLAY_ID
@ OBJECT_FIELD_DYNAMIC_FLAGS
@ PLAYER_FIELD_OVERRIDE_APBY_SPELL_POWER_PERCENT
@ PLAYER_FIELD_LIFETIME_MAX_RANK
@ PLAYER_FIELD_OVERRIDE_SPELL_POWER_BY_APPERCENT
@ PLAYER_FIELD_FAKE_INEBRIATION
bool roll_chance_i(int chance)
AuraRemoveMode GetRemoveMode() const
void HandleEnableAltPower(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleAuraRetainComboPoints(AuraApplication const *aurApp, uint8 mode, bool apply) const
SpellInfo const * GetSpellInfo() const
AuraType GetAuraType() const
void HandleAuraEmpathy(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleOverrideAttackPowerBySpellPower(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleAuraModFaction(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleAuraSetVehicle(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleForceReaction(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleArenaPreparation(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandlePreventResurrection(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleAuraModFakeInebriation(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandlePlayScene(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleAuraMastery(AuraApplication const *aurApp, uint8 mode, bool apply) const
int32 GetMiscValueB() const
void HandleComprehendLanguage(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleOverrideSpellPowerByAttackPower(AuraApplication const *aurApp, uint8 mode, bool apply) const
int32 GetMiscValue() const
void HandleAuraConvertRune(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleChannelDeathItem(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleAuraOverrideAutoattackWithSpell(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleAuraDummy(AuraApplication const *aurApp, uint8 mode, bool apply) const
uint32 GetEffIndex() const
SpellInfo const *const m_spellInfo
void HandleAuraForceWeather(AuraApplication const *aurApp, uint8 mode, bool apply) const
uint64 GetCasterGUID() const
void HandleBindSight(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleAuraOverrideSpells(AuraApplication const *aurApp, uint8 mode, bool apply) const
void HandleAuraLinked(AuraApplication const *aurApp, uint8 mode, bool apply) const
void SetStackAmount(uint8 num)
void SetCharges(uint8 charges)
SpellInfo const * GetSpellInfo() const
void WriteGuidBytes(const ObjectGuid &guid, Offsets... offsets)
bool WriteBit(uint32 bit)
void WriteGuidMask(const ObjectGuid &guid, Offsets... offsets)
void AddFlag(FLAG_TYPE flag)
void DelFlag(FLAG_TYPE flag)
void AddValue(FLAG_TYPE flag, T_VALUES value)
bool IsBattleground() const
bool Instanceable() const
void MoveFall(uint32 id=0)
static Unit * GetUnit(WorldObject const &, uint64 guid)
void ApplyModSignedFloatValue(uint16 index, float val, bool apply)
int32 GetInt32Value(uint16 index) const
void SetInt32Value(uint16 index, int32 value)
void SetFlag(uint16 index, uint32 newFlag)
void RemoveFlag(uint16 index, uint32 oldFlag)
void ApplyModUInt32Value(uint16 index, int32 val, bool apply)
void RemoveByteFlag(uint16 index, uint8 offset, uint8 newFlag)
void SetEntry(uint32 entry)
void SetUInt32Value(uint16 index, uint32 value)
void SetByteFlag(uint16 index, uint8 offset, uint8 newFlag)
static uint32 ChooseDisplayId(CreatureTemplate const *cinfo, CreatureData const *data=NULL)
void SendEquipError(InventoryResult msg, Item *pItem, Item *pItem2=NULL, uint32 itemid=0)
void RemoveRunesByAuraEffect(AuraEffect const *aura)
void SetChampioningType(uint8 type)
uint8 GetDrunkValue() const
void AddComboPoints(Unit *target, int8 count, Spell *spell=NULL)
void AddTemporarySpell(uint32 spellId)
void LeaveBattleground(bool teleportToEntryPoint=true)
void SendOnCancelExpectedVehicleRideAura()
void RemoveTemporarySpell(uint32 spellId)
WorldSession * GetSession() const
void SetViewpoint(WorldObject *target, bool apply)
uint32 GetRuneCooldown(uint8 index) const
Battleground * GetBattleground() const
void AddRuneByAuraEffect(uint8 index, RuneType newType, AuraEffect const *aura)
void SetChampioningFaction(uint32 faction)
void UpdateSpellDamageAndHealingBonus()
RuneType GetCurrentRune(uint8 index) const
InventoryResult CanStoreNewItem(uint8 bag, uint8 slot, ItemPosCountVec &dest, uint32 item, uint32 count, uint32 *no_space_count=NULL) const
ReputationRank GetReputationRank(uint32 faction_id) const
Item * StoreNewItem(ItemPosCountVec const &pos, uint32 item, bool update, int32 randomPropertyId=0, AllowedLooterSet const &allowedLooters=AllowedLooterSet())
uint64 GetComboTarget() const
void SendNewItem(Item *item, uint32 count, bool received, bool created, bool broadcast=false)
void UpdateAttackPowerAndDamage(bool ranged=false) override
ReputationMgr & GetReputationMgr()
void ApplyForceReaction(uint32 faction_id, ReputationRank rank, bool apply)
void SendForceReactions()
bool NeedsToBeTriggeredByCaster(SpellInfo const *triggeringSpell) const
float GetMaxRange(bool positive=false, Unit *caster=NULL, Spell *spell=NULL) const
AuraEffectList const & GetAuraEffectsByType(AuraType type) const
void setFaction(uint32 faction)
void RemovePetAura(PetAura const *petSpell)
bool CanHaveThreatList() const
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
void UpdateObjectVisibility(bool forced=true) override
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void AddPetAura(PetAura const *petSpell)
void RemoveAurasDueToSpell(uint32 spellId, uint64 casterGUID=0, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
void RemoveVehicleKit(bool remove=false)
void AddThreat(Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=NULL)
Aura * GetAura(uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const
MotionMaster * GetMotionMaster()
Aura * AddAura(uint32 spellId, Unit *target)
uint32 GetCreatureType() const
uint64 GetTransGUID() const override
void SetAutoattackOverrideRange(uint32 range)
void SetAutoattackOverrideSpell(SpellInfo const *spellInfo)
bool HasAuraType(AuraType auraType) const
void StopAttackFaction(uint32 faction_id)
bool CreateVehicleKit(uint32 id, uint32 creatureEntry, bool loading=false)
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply)
void CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void SetMaxPower(Powers power, int32 val)
Vehicle * GetVehicleKit() const
Guardian * GetGuardianPet() const
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPES > m_invisibilityDetect
Map const * GetBaseMap() const
void PlayDistanceSound(uint32 sound_id, Player *target)
void PlayDirectSound(uint32 sound_id, Player *target=NULL)
void SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.
Weather * AddWeather(uint32 zone_id)
Add a Weather object to the list.
void SendFineWeatherUpdateToPlayer(Player *player)
Weather * FindWeather(uint32 id)
Find a Weather object by the given zoneid.
uint32 GetBloodElfIllusionDisguiseSpellId(uint32 auraSpellId, uint8 gender)
uint32 GetKillCommandOwnerAuraSpellId()
ChampioningAuraInfo const * GetChampioningAuraInfo(uint32 auraSpellId)
uint32 GetLichKingIntroRemoveSoundId(uint32 auraSpellId)
uint32 GetLichKingIntroContinueSpellId(uint32 auraSpellId)
uint32 GetAuraDummyTriggeredSpellId(uint32 auraSpellId)
uint32 GetTaggedMurlocEntry(bool apply)
uint32 GetStackingAuraTriggerSpellId(uint32 auraSpellId)
uint32 GetKillCommandPetAuraSpellId()
uint32 GetQuestTameFinalSpellId(uint32 auraSpellId)
uint32 GetFestiveHolidayMountCreatureEntry(bool flying)
uint32 GetNetOMaticRootSelfSpellId()
uint32 GetLichKingIntroApplySoundId(uint32 auraSpellId)
uint32 GetAuraRemoveTriggeredSpellId(uint32 auraSpellId, bool heroic)
bool IsDespawnOnRemoveAura(uint32 auraSpellId)
float GetPositionZ() const
float GetOrientation() const
float GetPositionX() const
float GetPositionY() const