106 for (
auto phase :
m_caster->GetPhases())
162 target->
duel = duel2;
167 sScriptMgr->OnPlayerDuelRequest(target, caster);
181 if (currentDrunk + drunkMod > 100)
188 currentDrunk += drunkMod;
202 m_caster->SendMessageToSet(&data,
true);
214 if (!player || !target || target->
IsAlive())
232 for (; n_buttons; --n_buttons, ++button_id)
AreaTableEntry const * GetAreaEntryByAreaID(uint32 area_id)
#define SF_LOG_DEBUG(filterType__,...)
@ SPELL_ATTR9_SUMMON_PLAYER_TOTEM
@ SPELL_FAILED_NO_DUELING
@ SPELL_EFFECT_HANDLE_HIT
@ SPELL_EFFECT_HANDLE_HIT_TARGET
@ TRIGGERED_CAST_DIRECTLY
Will ignore combo point requirement.
@ TRIGGERED_IGNORE_CAST_IN_PROGRESS
Will ignore aura scaling.
@ TRIGGERED_IGNORE_GCD
Not triggered.
@ GAMEOBJECT_FIELD_FACTION_TEMPLATE
@ PLAYER_FIELD_DUEL_ARBITER
void WriteGuidBytes(const ObjectGuid &guid, Offsets... offsets)
void WriteGuidMask(const ObjectGuid &guid, Offsets... offsets)
bool Create(uint32 guidlow, uint32 name_id, Map *map, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 animprogress, GOState go_state, uint32 artKit=0)
void SetRespawnTime(int32 respawn)
bool SetPhased(uint32 id, bool update, bool apply) OVERRIDE
void SetSpellId(uint32 id)
uint32 GetGUIDLow() const
void SetUInt32Value(uint16 index, uint32 value)
void SetUInt64Value(uint16 index, uint64 value)
uint8 GetDrunkValue() const
bool HasSpellCooldown(uint32 spell_id) const
void SetDrunkValue(uint8 newDrunkValue, uint32 itemId=0)
WorldSession * GetSession() const
ActionButton const * GetActionButton(uint8 button)
PlayerSocial * GetSocial()
bool HasSpell(uint32 spell) const override
void RemovedInsignia(Player *looterPlr)
bool HasIgnore(uint32 ignore_guid)
SpellInfo const * GetSpellInfo() const
void EffectInebriate(SpellEffIndex effIndex)
static void SendCastResult(Player *caster, SpellInfo const *spellInfo, uint8 cast_count, SpellCastResult result, SpellCustomErrors customError=SPELL_CUSTOM_ERROR_NONE, Opcodes opcode=SMSG_CAST_FAILED)
void ExecuteLogEffectSummonObject(uint8 effIndex, WorldObject *obj)
SpellEffectHandleMode effectHandleMode
void EffectDuel(SpellEffIndex effIndex)
void EffectCastButtons(SpellEffIndex effIndex)
void EffectForceDeselect(SpellEffIndex effIndex)
SpellInfo const *const m_spellInfo
void EffectSkinPlayerCorpse(SpellEffIndex effIndex)
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 SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.