|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Spell.h>
Classes | |
| struct | GOTargetInfo |
| struct | HitTriggerSpell |
| struct | ItemTargetInfo |
| struct | TargetInfo |
Public Types | |
| typedef std::set< Aura * > | UsedSpellMods |
Static Public Member Functions | |
| static void | SendCastResult (Player *caster, SpellInfo const *spellInfo, uint8 cast_count, SpellCastResult result, SpellCustomErrors customError=SPELL_CUSTOM_ERROR_NONE, Opcodes opcode=SMSG_CAST_FAILED) |
Public Attributes | |
| UsedSpellMods | m_appliedMods |
| uint8 | m_cast_count |
| Item * | m_CastItem |
| uint64 | m_castItemGUID |
| int8 | m_comboPointGain |
| SpellCustomErrors | m_customError |
| uint32 | m_glyphIndex |
| SpellResearchData const * | m_researchData |
| SpellInfo const *const | m_spellInfo |
| SpellCastTargets | m_targets |
Protected Types | |
| typedef std::list< HitTriggerSpell > | HitTriggerSpellList |
| typedef std::map< uint32, SpellLogHelper > | LogHelperMap |
Private Member Functions | |
| Spell & | operator= (Spell const &right)=delete |
| Spell (Spell const &right)=delete | |
Friends | |
| class | SpellScript |
| void | Unit::SetCurrentCastedSpell (Spell *pSpell) |
|
protected |
|
protected |
| typedef std::set<Aura*> Spell::UsedSpellMods |
| Spell::Spell | ( | Unit * | caster, |
| SpellInfo const * | info, | ||
| TriggerCastFlags | triggerFlags, | ||
| uint64 | originalCasterGUID = 0, | ||
| bool | skipCheck = false ) |
Definition at line 500 of file Spell.cpp.
References _triggeredCastFlags, SpellInfo::AttributesEx4, CLASSMASK_WAND_USERS, CleanupTargetList(), focusObject, gameObjTarget, SpellInfo::GetSchoolMask(), itemTarget, m_applyMultiplierMask, m_attackType, m_auraScaleMask, m_autoRepeat, m_canReflect, m_cast_count, m_caster, m_CastItem, m_castItemGUID, m_casttime, m_channelTargetEffectMask, m_comboPointGain, m_customError, m_delayAtDamageCount, m_delayStart, m_destTargets, m_executedCurrently, m_glyphIndex, m_needComboPoints, m_originalCaster, m_originalCasterGUID, m_periodicPowerCost, m_periodicPowerTimer, m_powerCost, m_powerType, m_preGeneratedPath, m_referencedFromCurrentSpell, m_researchData, m_runesState, m_selfContainer, m_skipCheck, m_spellAura, m_spellInfo, m_spellSchoolMask, m_spellState, m_spellValue, m_timer, m_triggeredByAuraSpell, MAX_SPELL_EFFECTS, RANGED_ATTACK, SPELL_ATTR0_ABILITY, SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY, SPELL_ATTR1_CANT_BE_REFLECTED, SPELL_ATTR4_TRIGGERED, SPELL_ATTR6_CAST_BY_CHARMER, SPELL_CUSTOM_ERROR_NONE, SPELL_DAMAGE_CLASS_MAGIC, SPELL_STATE_NULL, sSpellMgr, TRIGGERED_FULL_MASK, TYPEID_PLAYER, and unitTarget.
Referenced by EffectDummy(), EffectInterruptCast(), EffectStuck(), operator=(), SelectImplicitChannelTargets(), Spell(), and Unit::SetCurrentCastedSpell.
| Spell::~Spell | ( | ) |
Definition at line 604 of file Spell.cpp.
References ASSERT, CheckEffectExecuteData(), m_caster, m_loadedScripts, m_referencedFromCurrentSpell, m_researchData, m_selfContainer, m_spellInfo, m_spellValue, SF_LOG_ERROR, and TYPEID_PLAYER.
| void Spell::_handle_finish_phase | ( | ) |
Definition at line 3628 of file Spell.cpp.
References CLASS_PALADIN, GetSpellInfo(), HandleHolyPower(), m_caster, m_comboPointGain, m_needComboPoints, m_powerType, POWER_HOLY_POWER, and SPELL_EFFECT_ADD_EXTRA_ATTACKS.
Referenced by handle_delayed(), and handle_immediate().
| void Spell::_handle_immediate_phase | ( | ) |
Definition at line 3586 of file Spell.cpp.
References BASE_ATTACK, DIMINISHING_LEVEL_1, DIMINISHING_NONE, DoAllEffectOnTarget(), HandleEffects(), HandleThreatSpells(), m_diminishGroup, m_diminishLevel, m_originalCaster, m_procAttacker, m_procEx, m_spellAura, m_spellInfo, m_targets, m_triggeredByAuraSpell, m_UniqueItemInfo, m_UniqueTargetInfo, MAX_SPELL_EFFECTS, PrepareScriptHitHandlers(), PROC_EX_NORMAL_HIT, PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_POS, and SPELL_EFFECT_HANDLE_HIT.
Referenced by handle_delayed(), and handle_immediate().
|
protected |
Definition at line 2340 of file Spell.cpp.
References m_destTargets.
Referenced by SelectSpellTargets().
|
protected |
Definition at line 2244 of file Spell.cpp.
References Spell::GOTargetInfo::effectMask, GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING, GameObject::GetGoType(), Object::GetGUID(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), m_caster, m_delayMoment, m_spellInfo, m_UniqueGOTargetInfo, MAX_SPELL_EFFECTS, Spell::GOTargetInfo::processed, SPELL_ATTR9_SPECIAL_DELAY_CALCULATION, SPELL_EFFECT_GAMEOBJECT_DAMAGE, SPELL_EFFECT_GAMEOBJECT_REPAIR, SPELL_EFFECT_GAMEOBJECT_SET_DESTRUCTION_STATE, Spell::GOTargetInfo::targetGUID, and Spell::GOTargetInfo::timeDelay.
Referenced by SelectEffectTypeImplicitTargets(), SelectImplicitAreaTargets(), SelectImplicitConeTargets(), SelectImplicitNearbyTargets(), and SelectImplicitTargetObjectTargets().
Definition at line 2311 of file Spell.cpp.
References Spell::ItemTargetInfo::effectMask, Spell::ItemTargetInfo::item, m_spellInfo, m_UniqueItemInfo, and MAX_SPELL_EFFECTS.
Referenced by SelectEffectTypeImplicitTargets(), and SelectImplicitTargetObjectTargets().
|
protected |
Definition at line 2136 of file Spell.cpp.
References Spell::TargetInfo::alive, CheckEffectTarget(), Spell::TargetInfo::crit, Spell::TargetInfo::damage, Spell::TargetInfo::effectMask, Object::GetGUID(), Unit::getLevel(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::IsAlive(), Unit::IsImmunedToSpellEffect(), m_auraScaleMask, m_canReflect, m_caster, m_delayMoment, m_originalCaster, m_skipCheck, m_spellInfo, m_UniqueTargetInfo, MAX_SPELL_EFFECTS, Spell::TargetInfo::missCondition, Spell::TargetInfo::processed, Spell::TargetInfo::reflectResult, Spell::TargetInfo::scaleAura, SPELL_ATTR9_SPECIAL_DELAY_CALCULATION, SPELL_CAST_OK, SPELL_MISS_EVADE, SPELL_MISS_IMMUNE, SPELL_MISS_NONE, SPELL_MISS_PARRY, SPELL_MISS_REFLECT, SpellInfo::SpellLevel, Spell::TargetInfo::targetGUID, and Spell::TargetInfo::timeDelay.
Referenced by EffectDummy(), SelectEffectTypeImplicitTargets(), SelectImplicitAreaTargets(), SelectImplicitCasterObjectTargets(), SelectImplicitChainTargets(), SelectImplicitChannelTargets(), SelectImplicitConeTargets(), SelectImplicitNearbyTargets(), and SelectImplicitTargetObjectTargets().
Definition at line 489 of file Spell.h.
References m_caster, m_spellInfo, and m_spellValue.
Referenced by CheckCast(), CheckEffectTarget(), EffectWeaponDmg(), and HandleEffects().
|
protected |
Definition at line 110 of file SpellEffectsMovement.cpp.
References m_spellInfo.
Referenced by EffectJump(), and EffectJumpDest().
|
protected |
Definition at line 7744 of file Spell.cpp.
References m_loadedScripts, and SPELL_SCRIPT_HOOK_AFTER_CAST.
Referenced by cast().
|
protected |
Definition at line 7856 of file Spell.cpp.
References m_loadedScripts, and SPELL_SCRIPT_HOOK_AFTER_HIT.
Referenced by DoAllEffectOnTarget(), DoAllEffectOnTarget(), and DoAllEffectOnTarget().
|
protected |
Definition at line 7718 of file Spell.cpp.
References m_loadedScripts, and SPELL_SCRIPT_HOOK_BEFORE_CAST.
Referenced by cast().
|
protected |
Definition at line 7830 of file Spell.cpp.
References m_loadedScripts, and SPELL_SCRIPT_HOOK_BEFORE_HIT.
Referenced by DoAllEffectOnTarget(), DoAllEffectOnTarget(), and DoSpellHitOnUnit().
|
protected |
Definition at line 7757 of file Spell.cpp.
References m_loadedScripts, SPELL_CAST_OK, and SPELL_SCRIPT_HOOK_CHECK_CAST.
Referenced by CheckCast().
|
protected |
Definition at line 7782 of file Spell.cpp.
References ASSERT, m_loadedScripts, m_spellInfo, SPELL_EFFECT_HANDLE_HIT, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_EFFECT_HANDLE_LAUNCH, SPELL_EFFECT_HANDLE_LAUNCH_TARGET, SPELL_SCRIPT_HOOK_EFFECT_HIT, SPELL_SCRIPT_HOOK_EFFECT_HIT_TARGET, SPELL_SCRIPT_HOOK_EFFECT_LAUNCH, and SPELL_SCRIPT_HOOK_EFFECT_LAUNCH_TARGET.
Referenced by HandleEffects().
|
protected |
Definition at line 7869 of file Spell.cpp.
References m_loadedScripts, m_spellInfo, and SPELL_SCRIPT_HOOK_OBJECT_AREA_TARGET_SELECT.
Referenced by SelectImplicitAreaTargets(), SelectImplicitChainTargets(), and SelectImplicitConeTargets().
|
protected |
Definition at line 7883 of file Spell.cpp.
References m_loadedScripts, m_spellInfo, and SPELL_SCRIPT_HOOK_OBJECT_TARGET_SELECT.
Referenced by SelectEffectTypeImplicitTargets(), SelectImplicitCasterObjectTargets(), SelectImplicitChannelTargets(), SelectImplicitNearbyTargets(), and SelectImplicitTargetObjectTargets().
|
protected |
Definition at line 7731 of file Spell.cpp.
References m_loadedScripts, and SPELL_SCRIPT_HOOK_ON_CAST.
Referenced by cast().
|
protected |
Definition at line 7843 of file Spell.cpp.
References m_loadedScripts, and SPELL_SCRIPT_HOOK_HIT.
Referenced by DoAllEffectOnTarget(), DoAllEffectOnTarget(), and DoAllEffectOnTarget().
| bool Spell::CanAutoCast | ( | Unit * | target | ) |
Definition at line 6559 of file Spell.cpp.
References CheckPetCast(), Unit::GetAuraEffect(), Object::GetGUID(), Unit::HasAuraEffect(), m_spellInfo, m_UniqueTargetInfo, MAX_SPELL_EFFECTS, SelectSpellTargets(), SPELL_CAST_OK, SPELL_EFFECT_APPLY_AURA, and SPELL_FAILED_UNIT_NOT_INFRONT.
Referenced by PetAI::UpdateAI().
| void Spell::cancel | ( | ) |
Definition at line 3210 of file Spell.cpp.
References AURA_REMOVE_BY_CANCEL, CancelGlobalCooldown(), finish(), ObjectAccessor::GetUnit(), m_appliedMods, m_autoRepeat, m_caster, m_originalCasterGUID, m_selfContainer, m_spellInfo, m_spellState, m_UniqueTargetInfo, SendCastResult(), SendChannelUpdate(), SendInterrupted(), SetReferencedFromCurrent(), SPELL_FAILED_INTERRUPTED, SPELL_MISS_NONE, SPELL_STATE_CASTING, SPELL_STATE_DELAYED, SPELL_STATE_FINISHED, SPELL_STATE_PREPARING, and TYPEID_PLAYER.
Referenced by LuaSpell::cancel(), cast(), Unit::InterruptSpell(), and update().
|
protected |
Definition at line 8013 of file Spell.cpp.
References CURRENT_GENERIC_SPELL, m_caster, m_spellInfo, and TYPEID_PLAYER.
Referenced by cancel().
|
protected |
Definition at line 7920 of file Spell.cpp.
References SpellInfo::AttributesEx4, m_spellInfo, MAX_SPELL_EFFECTS, SPELL_ATTR4_PROC_ONLY_ON_CASTER, and TARGET_UNIT_CASTER.
Referenced by DoAllEffectOnTarget(), and DoTriggersOnSpellHit().
|
protected |
Definition at line 7597 of file Spell.cpp.
References LockEntry::Index, LOCK_KEY_ITEM, LOCK_KEY_SKILL, m_caster, m_CastItem, m_spellInfo, MAX_LOCK_CASE, LockEntry::Skill, SKILL_NONE, SkillByLockType(), sLockStore, SPELL_CAST_OK, SPELL_FAILED_BAD_TARGETS, SPELL_FAILED_LOW_CASTLEVEL, TARGET_GAMEOBJECT_ITEM_TARGET, LockEntry::Type, and TYPEID_PLAYER.
Referenced by CheckCast(), and EffectOpenLock().
| void Spell::cast | ( | bool | skipCheck = false | ) |
Not own traded item (in trader trade slot) req. reagents including triggered spell case
Definition at line 3266 of file Spell.cpp.
References _triggeredCastFlags, ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL, ACHIEVEMENT_CRITERIA_TYPE_USE_ITEM, ACHIEVEMENT_TIMED_TYPE_ITEM, CallScriptAfterCastHandlers(), CallScriptBeforeCastHandlers(), CallScriptOnCastHandlers(), cancel(), CHEAT_COOLDOWN, CheckCast(), finish(), GetSpellInfo(), handle_immediate(), HandleLaunchPhase(), m_caster, m_CastItem, m_immediateHandled, m_spellInfo, m_spellState, m_targets, PrepareScriptHitHandlers(), PrepareTriggersExecutedOnHit(), SelectSpellTargets(), SendCastResult(), SendInterrupted(), SendSpellCooldown(), SendSpellGo(), SetDelayStart(), SetExecutedCurrently(), SPELL_ATTR4_UNK4, SPELL_CAST_OK, SPELL_DAMAGE_CLASS_NONE, SPELL_FAILED_DONT_REPORT, SPELL_STATE_DELAYED, SPELL_STATE_FINISHED, sScriptMgr, sSpellMgr, TakeCastItem(), TakePower(), TakeReagents(), TARGET_FLAG_TRADE_ITEM, TARGET_FLAG_UNIT, TRIGGERED_IGNORE_CAST_ITEM, TRIGGERED_IGNORE_POWER_AND_REAGENT_COST, TRIGGERED_IGNORE_SET_FACING, TYPEID_PLAYER, TYPEID_UNIT, UNIT_STATE_CASTING, and UpdatePointers().
Referenced by LuaSpell::Cast(), prepare(), and update().
| SpellCastResult Spell::CheckArenaAndRatedBattlegroundCastRules | ( | ) |
Definition at line 6528 of file Spell.cpp.
References IN_MILLISECONDS, m_spellInfo, MINUTE, SPELL_ATTR4_NOT_USABLE_IN_ARENA_OR_RATED_BG, SPELL_ATTR4_USABLE_IN_ARENA, SPELL_ATTR9_NOT_USABLE_IN_ARENA, SPELL_ATTR9_USABLE_IN_RATED_BATTLEGROUNDS, SPELL_CAST_OK, SPELL_FAILED_NOT_IN_ARENA, and SPELL_FAILED_NOT_IN_RATED_BATTLEGROUND.
Referenced by CheckCast().
| SpellCastResult Spell::CheckCast | ( | bool | strict | ) |
Definition at line 5539 of file Spell.cpp.
References _triggeredCastFlags, InstanceTemplate::AllowMount, AREA_FLAG_NO_FLY_ZONE, AURA_INTERRUPT_FLAG_NOT_SEATED, CalculateDamage(), CallScriptCheckCastHandlers(), Battlefield::CanFlyIn(), CanOpenLock(), SummonPropertiesEntry::Category, CheckArenaAndRatedBattlegroundCastRules(), CheckCasterAuras(), CheckItems(), CheckPower(), CheckRange(), CLASS_WARLOCK, CONDITION_SOURCE_TYPE_SPELL, Condition::ConditionTarget, CONTACT_DISTANCE, VMAP::VMapFactory::createOrGetVMapManager(), CREATURE_TYPE_CRITTER, damage, DISABLE_TYPE_SPELL, Condition::ErrorTextId, Condition::ErrorType, ObjectAccessor::FindPlayer(), focusObject, GAMEOBJECT_TYPE_TRAP, WorldSession::GetAccountId(), GetAreaEntryByAreaID(), Unit::getAttackers(), Player::GetBoundInstance(), Unit::GetCharmerGUID(), WorldObject::GetContactPoint(), Creature::GetCreatureTemplate(), Unit::GetCreatureType(), Pet::GetCurrentFoodBenefitLevel(), WorldObject::GetFirstCollisionPosition(), Unit::getLevel(), WorldObject::GetObjectSize(), Pet::GetOwner(), WorldSession::GetRecruiterId(), Position::GetRelativeAngle(), CreatureTemplate::GetRequiredLootSkill(), Player::GetSelectedPlayer(), Player::GetSession(), TradeData::GetSpell(), GetSpellInfo(), Unit::GetTarget(), Item::GetTemplate(), Unit::HasAura(), HasGlobalCooldown(), Pet::HaveInDiet(), Unit::IsAlive(), IsAutoRepeat(), DisableMgr::IsDisabledFor(), Unit::IsFriendlyTo(), Unit::IsInCombat(), Player::IsInSameRaidWith(), MapEntry::IsInstance(), Item::IsLocked(), Loot::isLooted(), MapEntry::IsRaid(), IsTriggered(), ItemTemplate::ItemLevel, ItemTemplate::LockID, Creature::loot, m_caster, m_CastItem, m_customError, m_needComboPoints, m_originalCaster, M_PI, Position::m_positionX, Position::m_positionY, Position::m_positionZ, m_preGeneratedPath, m_selfContainer, m_spellInfo, m_targets, m_triggeredByAuraSpell, MAX_SPELL_EFFECTS, ConditionSourceInfo::mConditionTargets, ConditionSourceInfo::mLastFailedCondition, MOVEMENTFLAG_FALLING_FAR, PATHFIND_NOPATH, PATHFIND_SHORT, PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_ALLOW_ONLY_ABILITY, POWER_MANA, Player::Satisfy(), sBattlefieldMgr, sConditionMgr, SearchSpellFocus(), sGlyphPropertiesStore, SKILL_HERBALISM, SKILL_MINING, SKILL_NONE, sMapStore, sObjectMgr, SPELL_ATTR0_CASTABLE_WHILE_DEAD, SPELL_ATTR0_CASTABLE_WHILE_MOUNTED, SPELL_ATTR0_CU_REQ_CASTER_BEHIND_TARGET, SPELL_ATTR0_CU_REQ_TARGET_FACING_CASTER, SPELL_ATTR0_INDOORS_ONLY, SPELL_ATTR0_ONLY_STEALTHED, SPELL_ATTR0_OUTDOORS_ONLY, SPELL_ATTR0_PASSIVE, SPELL_ATTR2_CAN_TARGET_NOT_IN_LOS, SPELL_ATTR3_BATTLEGROUND, SPELL_ATTR7_IS_CHEAT_SPELL, SPELL_AURA_ABILITY_IGNORE_AURASTATE, SPELL_AURA_AOE_CHARM, SPELL_AURA_BLOCK_SPELL_FAMILY, SPELL_AURA_CAST_WHILE_WALKING, SPELL_AURA_FLY, SPELL_AURA_MOD_CHARM, SPELL_AURA_MOD_IGNORE_SHAPESHIFT, SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED, SPELL_AURA_MOD_POSSESS, SPELL_AURA_MOD_POSSESS_PET, SPELL_AURA_MOUNTED, SPELL_AURA_PERIODIC_MANA_LEECH, SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS, SPELL_CAST_OK, SPELL_CUSTOM_ERROR_GM_ONLY, SPELL_DISABLE_LOS, SPELL_EFFECT_APPLY_GLYPH, SPELL_EFFECT_CHARGE, SPELL_EFFECT_CREATE_TAMED_PET, SPELL_EFFECT_DUMMY, SPELL_EFFECT_FEED_PET, SPELL_EFFECT_LEAP, SPELL_EFFECT_LEAP_BACK, SPELL_EFFECT_LEARN_PET_SPELL, SPELL_EFFECT_LEARN_SPELL, SPELL_EFFECT_OPEN_LOCK, SPELL_EFFECT_POWER_BURN, SPELL_EFFECT_POWER_DRAIN, SPELL_EFFECT_RESURRECT_PET, SPELL_EFFECT_SKINNING, SPELL_EFFECT_STEAL_BENEFICIAL_BUFF, SPELL_EFFECT_STUCK, SPELL_EFFECT_SUMMON, SPELL_EFFECT_SUMMON_PET, SPELL_EFFECT_SUMMON_PLAYER, SPELL_EFFECT_SUMMON_RAF_FRIEND, SPELL_EFFECT_TALENT_SPEC_SELECT, SPELL_EFFECT_TELEPORT_UNITS_FACE_CASTER, SPELL_EFFECT_UNLOCK_GUILD_VAULT_TAB, SPELL_FAILED_AFFECTING_COMBAT, SPELL_FAILED_ALREADY_HAVE_CHARM, SPELL_FAILED_ALREADY_HAVE_SUMMON, SPELL_FAILED_BAD_IMPLICIT_TARGETS, SPELL_FAILED_BAD_TARGETS, SPELL_FAILED_CANT_BE_CHARMED, SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW, SPELL_FAILED_CASTER_AURASTATE, SPELL_FAILED_CASTER_DEAD, SPELL_FAILED_CHARMED, SPELL_FAILED_CUSTOM_ERROR, SPELL_FAILED_DONT_REPORT, SPELL_FAILED_FOOD_LOWLEVEL, SPELL_FAILED_HIGHLEVEL, SPELL_FAILED_ITEM_ALREADY_ENCHANTED, SPELL_FAILED_ITEM_ENCHANT_TRADE_WINDOW, SPELL_FAILED_LINE_OF_SIGHT, SPELL_FAILED_LOW_CASTLEVEL, SPELL_FAILED_LOWLEVEL, SPELL_FAILED_MOVING, SPELL_FAILED_NO_COMBO_POINTS, SPELL_FAILED_NO_MOUNTS_ALLOWED, SPELL_FAILED_NO_PET, SPELL_FAILED_NOPATH, SPELL_FAILED_NOT_BEHIND, SPELL_FAILED_NOT_HERE, SPELL_FAILED_NOT_IN_BATTLEGROUND, SPELL_FAILED_NOT_INFRONT, SPELL_FAILED_NOT_KNOWN, SPELL_FAILED_NOT_MOUNTED, SPELL_FAILED_NOT_ON_TAXI, SPELL_FAILED_NOT_READY, SPELL_FAILED_NOT_SHAPESHIFT, SPELL_FAILED_NOT_TRADING, SPELL_FAILED_ONLY_ABOVEWATER, SPELL_FAILED_ONLY_BATTLEGROUNDS, SPELL_FAILED_ONLY_INDOORS, SPELL_FAILED_ONLY_OUTDOORS, SPELL_FAILED_ONLY_STEALTHED, SPELL_FAILED_OUT_OF_RANGE, SPELL_FAILED_REQUIRES_SPELL_FOCUS, SPELL_FAILED_ROOTED, SPELL_FAILED_SPELL_IN_PROGRESS, SPELL_FAILED_SPELL_UNAVAILABLE, SPELL_FAILED_SUCCESS, SPELL_FAILED_TARGET_FRIENDLY, SPELL_FAILED_TARGET_IS_PLAYER_CONTROLLED, SPELL_FAILED_TARGET_LOCKED_TO_RAID_INSTANCE, SPELL_FAILED_TARGET_NOT_IN_INSTANCE, SPELL_FAILED_TARGET_NOT_LOOTED, SPELL_FAILED_TARGET_UNSKINNABLE, SPELL_FAILED_TRY_AGAIN, SPELL_FAILED_UNIQUE_GLYPH, SPELL_FAILED_WRONG_PET_FOOD, sSpellMgr, sSummonPropertiesStore, STATUS_IN_PROGRESS, STATUS_WAIT_LEAVE, SUMMON_CATEGORY_PET, SUMMON_CATEGORY_PUPPET, TARGET_FLAG_ITEM, TARGET_FLAG_TRADE_ITEM, TARGET_GAMEOBJECT_ITEM_TARGET, TARGET_GAMEOBJECT_TARGET, TARGET_UNIT_PET, TRADE_SLOT_NONTRADED, TRIGGERED_DONT_REPORT_CAST_ERROR, TRIGGERED_IGNORE_CASTER_AURAS, TRIGGERED_IGNORE_CASTER_AURASTATE, TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE, TRIGGERED_IGNORE_GCD, TRIGGERED_IGNORE_POWER_AND_REAGENT_COST, TRIGGERED_IGNORE_SHAPESHIFT, TYPEID_PLAYER, TYPEID_UNIT, UNIT_FIELD_FLAGS, UNIT_FIELD_FLAGS2, UNIT_FLAG2_ALLOW_CHEAT_SPELLS, UNIT_FLAG_SKINNABLE, UNIT_STATE_ROOT, unitTarget, and WORLD_TRIGGER.
Referenced by cast(), CheckPetCast(), WorldSession::HandleAcceptTradeOpcode(), and prepare().
| SpellCastResult Spell::CheckCasterAuras | ( | ) | const |
Definition at line 6398 of file Spell.cpp.
References SpellInfo::AttributesEx, SpellInfo::GetAllEffectsMechanicMask(), SpellInfo::GetDispelMask(), Aura::GetEffect(), SpellInfo::GetSchoolMask(), Aura::GetSpellInfo(), Skyfire::Spells::HasMechanic(), IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK, m_caster, m_spellInfo, MAX_SPELL_EFFECTS, MECHANIC_STUN, SPELL_ATTR1_DISPEL_AURAS_ON_IMMUNITY, SPELL_ATTR1_UNAFFECTED_BY_SCHOOL_IMMUNE, SPELL_ATTR5_USABLE_WHILE_CONFUSED, SPELL_ATTR5_USABLE_WHILE_FEARED, SPELL_ATTR5_USABLE_WHILE_STUNNED, SPELL_ATTR6_IGNORE_CASTER_AURAS, SPELL_AURA_DISPEL_IMMUNITY, SPELL_AURA_MECHANIC_IMMUNITY, SPELL_AURA_MOD_CONFUSE, SPELL_AURA_MOD_FEAR, SPELL_AURA_MOD_PACIFY, SPELL_AURA_MOD_PACIFY_SILENCE, SPELL_AURA_MOD_SILENCE, SPELL_AURA_MOD_STUN, SPELL_AURA_SCHOOL_IMMUNITY, SPELL_CAST_OK, SPELL_FAILED_CONFUSED, SPELL_FAILED_FLEEING, SPELL_FAILED_PACIFIED, SPELL_FAILED_SILENCED, SPELL_FAILED_STUNNED, SPELL_PREVENTION_TYPE_PACIFY, SPELL_PREVENTION_TYPE_SILENCE, UNIT_FIELD_FLAGS, UNIT_FLAG_CONFUSED, UNIT_FLAG_FLEEING, UNIT_FLAG_PACIFIED, UNIT_FLAG_SILENCED, and UNIT_FLAG_STUNNED.
Referenced by CheckCast().
|
inline |
|
protected |
Definition at line 7694 of file Spell.cpp.
References ASSERT, and m_effectExecuteData.
Referenced by PrepareTargetProcessing(), and ~Spell().
Definition at line 7263 of file Spell.cpp.
References CalculateDamage(), damage, DISABLE_TYPE_SPELL, Unit::GetCharmerGUID(), ObjectAccessor::GetCorpse(), Object::GetGUID(), Unit::getLevel(), Corpse::GetOwnerGUID(), Object::GetTypeId(), IS_GAMEOBJECT_GUID(), DisableMgr::IsDisabledFor(), Unit::IsMounted(), IsTriggered(), Unit::IsVehicle(), WorldObject::IsWithinLOSInMap(), m_caster, m_originalCasterGUID, m_spellInfo, m_targets, SPELL_ATTR2_CAN_TARGET_NOT_IN_LOS, SPELL_AURA_AOE_CHARM, SPELL_AURA_MOD_CHARM, SPELL_AURA_MOD_POSSESS, SPELL_AURA_MOD_POSSESS_PET, SPELL_DISABLE_LOS, SPELL_EFFECT_RESURRECT_NEW, and TYPEID_UNIT.
Referenced by AddUnitTarget().
| SpellCastResult Spell::CheckItems | ( | ) |
Definition at line 6695 of file Spell.cpp.
References _triggeredCastFlags, BASE_ATTACK, Player::CanNoReagentCast(), Player::CanStoreNewItem(), Unit::CastSpell(), ItemTemplate::Class, ItemTemplate::DisenchantID, EFFECT_1, ENCHANTMENT_CAN_SOULBOUND, EQUIP_ERR_OK, Object::GetEntry(), Player::GetItemByEntry(), Item::GetOwner(), Player::GetSkillValue(), Item::GetTemplate(), Player::GetWeaponForAttack(), Player::HasItemCount(), Player::HasItemFitToSpellRequirements(), Item::IsBroken(), Item::IsFitToSpellRequirements(), IsTriggered(), ITEM_CLASS_ARMOR, ITEM_CLASS_CONSUMABLE, ITEM_CLASS_WEAPON, ITEM_ENCHANTMENT_TYPE_USE_SPELL, ITEM_PROTO_FLAG_MILLABLE, ITEM_PROTO_FLAG_PROSPECTABLE, ITEM_PROTO_FLAG_TRIGGERED_CAST, ITEM_SPELLTRIGGER_ON_NO_DELAY_USE, ITEM_SPELLTRIGGER_ON_USE, ITEM_SUBCLASS_WEAPON_BOW, ITEM_SUBCLASS_WEAPON_CROSSBOW, ITEM_SUBCLASS_WEAPON_GUN, ITEM_SUBCLASS_WEAPON_THROWN, ITEM_SUBCLASS_WEAPON_WAND, ItemTemplate::ItemLevel, ItemTemplate::ItemLimitCategory, LootTemplates_Milling, LootTemplates_Prospecting, m_attackType, m_caster, m_CastItem, m_castItemGUID, m_spellInfo, m_targets, MAX_ITEM_ENCHANTMENT_EFFECTS, MAX_ITEM_PROTO_SPELLS, MAX_ITEM_SPELLS, MAX_POWERS, MAX_SPELL_EFFECTS, MAX_SPELL_REAGENTS, NULL_BAG, NULL_SLOT, OFF_ATTACK, ItemTemplate::Quality, RANGED_ATTACK, ItemTemplate::RequiredDisenchantSkill, Player::SendEquipError(), SKILL_ENCHANTING, SKILL_INSCRIPTION, SKILL_JEWELCRAFTING, SpellItemEnchantmentEntry::slot, sObjectMgr, SPELL_ATTR3_MAIN_HAND, SPELL_ATTR3_REQ_OFFHAND, SPELL_CAST_OK, SPELL_EFFECT_CREATE_ITEM, SPELL_EFFECT_CREATE_ITEM_2, SPELL_EFFECT_CREATE_MANA_GEM, SPELL_EFFECT_DISENCHANT, SPELL_EFFECT_ENCHANT_HELD_ITEM, SPELL_EFFECT_ENCHANT_ITEM, SPELL_EFFECT_ENCHANT_ITEM_PRISMATIC, SPELL_EFFECT_ENCHANT_ITEM_TEMPORARY, SPELL_EFFECT_ENERGIZE, SPELL_EFFECT_HEAL, SPELL_EFFECT_MILLING, SPELL_EFFECT_PROSPECTING, SPELL_EFFECT_WEAPON_DAMAGE, SPELL_EFFECT_WEAPON_DAMAGE_NOSCHOOL, SPELL_FAILED_ALREADY_AT_FULL_HEALTH, SPELL_FAILED_ALREADY_AT_FULL_POWER, SPELL_FAILED_CANT_BE_DISENCHANTED, SPELL_FAILED_CANT_BE_MILLED, SPELL_FAILED_CANT_BE_PROSPECTED, SPELL_FAILED_DONT_REPORT, SPELL_FAILED_EQUIPPED_ITEM, SPELL_FAILED_EQUIPPED_ITEM_CLASS, SPELL_FAILED_ERROR, SPELL_FAILED_ITEM_AT_MAX_CHARGES, SPELL_FAILED_ITEM_GONE, SPELL_FAILED_ITEM_NOT_FOUND, SPELL_FAILED_ITEM_NOT_READY, SPELL_FAILED_LOW_CASTLEVEL, SPELL_FAILED_LOWLEVEL, SPELL_FAILED_NEED_MORE_ITEMS, SPELL_FAILED_NO_AMMO, SPELL_FAILED_NO_CHARGES_REMAIN, SPELL_FAILED_NOT_TRADEABLE, SPELL_FAILED_ON_USE_ENCHANT, SPELL_FAILED_REAGENTS, SPELL_FAILED_TOO_MANY_OF_ITEM, SPELL_FAILED_TOTEM_CATEGORY, SPELL_FAILED_TOTEMS, _Spell::SpellCharges, SPELLFAMILY_MAGE, _Spell::SpellId, ItemTemplate::Spells, _Spell::SpellTrigger, sSpellItemEnchantmentStore, ItemTemplate::SubClass, TARGET_UNIT_PET, TRIGGERED_DONT_REPORT_CAST_ERROR, TRIGGERED_IGNORE_EQUIPPED_ITEM_REQUIREMENT, TRIGGERED_IGNORE_POWER_AND_REAGENT_COST, and SpellItemEnchantmentEntry::type.
Referenced by CheckCast().
| SpellCastResult Spell::CheckPetCast | ( | Unit * | target | ) |
Definition at line 6365 of file Spell.cpp.
References _triggeredCastFlags, CheckCast(), m_caster, m_spellInfo, m_targets, SPELL_FAILED_BAD_IMPLICIT_TARGETS, SPELL_FAILED_CASTER_DEAD, SPELL_FAILED_NOT_READY, SPELL_FAILED_SPELL_IN_PROGRESS, TRIGGERED_IGNORE_CAST_IN_PROGRESS, and UNIT_STATE_CASTING.
Referenced by CanAutoCast(), WorldSession::HandlePetActionHelper(), and WorldSession::HandlePetCastSpellOpcode().
| SpellCastResult Spell::CheckPower | ( | ) |
Definition at line 6659 of file Spell.cpp.
References CheckRuneCost(), m_caster, m_CastItem, m_powerCost, m_powerType, m_spellInfo, MAX_POWERS, POWER_HEALTH, POWER_RUNES, SF_LOG_ERROR, SPELL_CAST_OK, SPELL_FAILED_CASTER_AURASTATE, SPELL_FAILED_NO_POWER, and SPELL_FAILED_UNKNOWN.
Referenced by CheckCast().
| SpellCastResult Spell::CheckRange | ( | bool | strict | ) |
Definition at line 6599 of file Spell.cpp.
References _triggeredCastFlags, m_caster, m_casttime, M_PI, m_spellInfo, m_targets, SPELL_CAST_OK, SPELL_FACING_FLAG_INFRONT, SPELL_FAILED_DONT_REPORT, SPELL_FAILED_OUT_OF_RANGE, SPELL_FAILED_TOO_CLOSE, SPELL_FAILED_UNIT_NOT_INFRONT, SPELL_RANGE_MELEE, SPELL_RANGE_RANGED, SPELLMOD_RANGE, TRIGGERED_DONT_REPORT_CAST_ERROR, and TYPEID_PLAYER.
Referenced by CheckCast().
| SpellCastResult Spell::CheckRuneCost | ( | uint32 | runeCostID | ) |
Definition at line 5273 of file Spell.cpp.
References CLASS_DEATH_KNIGHT, Unit::getClass(), Player::GetCurrentRune(), Player::GetRuneCooldown(), m_caster, m_powerType, m_spellInfo, MAX_RUNES, SpellRuneCostEntry::NoRuneCost(), NUM_RUNE_TYPES, POWER_RUNES, RUNE_DEATH, SpellRuneCostEntry::RuneCost, SPELL_CAST_OK, SPELL_FAILED_NO_POWER, SPELLMOD_COST, and sSpellRuneCostStore.
Referenced by CheckPower().
Definition at line 7897 of file Spell.cpp.
References m_loadedScripts, and m_spellInfo.
Referenced by SelectEffectImplicitTargets().
|
inline |
| void Spell::CleanupTargetList | ( | ) |
Definition at line 2128 of file Spell.cpp.
References m_delayMoment, m_UniqueGOTargetInfo, m_UniqueItemInfo, and m_UniqueTargetInfo.
Referenced by SelectImplicitAreaTargets(), and Spell().
| void Spell::Delayed | ( | ) |
Definition at line 7124 of file Spell.cpp.
References AddPct(), isDelayableNoMore(), m_caster, m_casttime, m_spellInfo, m_timer, SF_LOG_INFO, SMSG_SPELL_DELAYED, SPELL_AURA_REDUCE_PUSHBACK, SPELLMOD_NOT_LOSE_CASTING_TIME, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void Spell::DelayedChannel | ( | ) |
Definition at line 7170 of file Spell.cpp.
References AddPct(), CalculatePct(), getState(), ObjectAccessor::GetUnit(), isDelayableNoMore(), m_caster, m_originalCasterGUID, m_spellInfo, m_timer, m_UniqueTargetInfo, SendChannelUpdate(), SF_LOG_DEBUG, SPELL_AURA_REDUCE_PUSHBACK, SPELL_MISS_NONE, SPELL_STATE_CASTING, SPELLMOD_NOT_LOSE_CASTING_TIME, and TYPEID_PLAYER.
|
protected |
Definition at line 7547 of file Spell.cpp.
References Spell::TargetInfo::crit, Spell::TargetInfo::damage, Spell::TargetInfo::effectMask, Unit::GetTotalAuraMultiplierByMiscMask(), ObjectAccessor::GetUnit(), HandleEffects(), m_applyMultiplierMask, m_attackType, m_caster, m_damage, m_damageMultipliers, m_healing, m_spellInfo, m_spellSchoolMask, m_UniqueTargetInfo, MAX_SPELL_EFFECTS, Spell::TargetInfo::missCondition, Spell::TargetInfo::reflectResult, SPELL_AURA_MOD_AOE_DAMAGE_AVOIDANCE, SPELL_AURA_MOD_CREATURE_AOE_DAMAGE_AVOIDANCE, SPELL_EFFECT_HANDLE_LAUNCH_TARGET, SPELL_MISS_NONE, SPELL_MISS_REFLECT, Spell::TargetInfo::targetGUID, TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by HandleLaunchPhase().
|
protected |
Definition at line 2839 of file Spell.cpp.
References CallScriptAfterHitHandlers(), CallScriptBeforeHitHandlers(), CallScriptOnHitHandlers(), Spell::GOTargetInfo::effectMask, HandleEffects(), m_caster, MAX_SPELL_EFFECTS, PrepareScriptHitHandlers(), Spell::GOTargetInfo::processed, SPELL_EFFECT_HANDLE_HIT_TARGET, and Spell::GOTargetInfo::targetGUID.
|
protected |
Definition at line 2864 of file Spell.cpp.
References CallScriptAfterHitHandlers(), CallScriptBeforeHitHandlers(), CallScriptOnHitHandlers(), Spell::ItemTargetInfo::effectMask, HandleEffects(), Spell::ItemTargetInfo::item, MAX_SPELL_EFFECTS, PrepareScriptHitHandlers(), and SPELL_EFFECT_HANDLE_HIT_TARGET.
|
protected |
Definition at line 2345 of file Spell.cpp.
References SpellNonMeleeDamage::absorb, Creature::AI(), Spell::TargetInfo::alive, AURA_INTERRUPT_FLAG_TALK, Unit::CalculateSpellDamageTaken(), CallScriptAfterHitHandlers(), CallScriptOnHitHandlers(), CanExecuteTriggersOnHit(), Player::CastItemCombatSpell(), createProcExtendMask(), Spell::TargetInfo::crit, Spell::TargetInfo::damage, SpellNonMeleeDamage::damage, Unit::DealDamageMods(), Unit::DealSpellDamage(), DoSpellHitOnUnit(), DoTriggersOnSpellHit(), Spell::TargetInfo::effectMask, ObjectAccessor::FindUnit(), getMSTime(), getState(), Object::GetTypeId(), ObjectAccessor::GetUnit(), HandleEffects(), Unit::HealBySpell(), Unit::IsAIEnabled, Unit::IsAlive(), Unit::IsPvP(), Unit::isSpellCrit(), Unit::IsStandState(), m_attackType, m_caster, m_damage, m_healing, Unit::m_lastSanctuaryTime, m_needComboPoints, m_originalCaster, m_procAttacker, m_procEx, m_procVictim, m_spellAura, m_spellInfo, m_spellSchoolMask, m_targets, m_triggeredByAuraSpell, MAX_SPELL_EFFECTS, Spell::TargetInfo::missCondition, PROC_EX_CRITICAL_HIT, PROC_EX_NORMAL_HIT, PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_NEG, PROC_FLAG_DONE_SPELL_MAGIC_DMG_CLASS_POS, PROC_FLAG_DONE_SPELL_NONE_DMG_CLASS_NEG, PROC_FLAG_DONE_SPELL_NONE_DMG_CLASS_POS, PROC_FLAG_TAKEN_DAMAGE, PROC_FLAG_TAKEN_SPELL_MAGIC_DMG_CLASS_NEG, PROC_FLAG_TAKEN_SPELL_MAGIC_DMG_CLASS_POS, PROC_FLAG_TAKEN_SPELL_NONE_DMG_CLASS_NEG, PROC_FLAG_TAKEN_SPELL_NONE_DMG_CLASS_POS, Unit::ProcDamageAndSpell(), Spell::TargetInfo::processed, Spell::TargetInfo::reflectResult, Spell::TargetInfo::scaleAura, Unit::SendSpellNonMeleeDamageLog(), Unit::SetStandState(), SPELL_ATTR0_CU_AURA_CC, SPELL_ATTR0_CU_PICKPOCKET, SPELL_ATTR0_STOP_ATTACK_TARGET, SPELL_ATTR1_NO_THREAT, SPELL_ATTR3_CANT_TRIGGER_PROC, SPELL_ATTR3_NO_INITIAL_AGGRO, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_DAMAGE_CLASS_RANGED, SPELL_EFFECT_DISPEL, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_MISS_DODGE, SPELL_MISS_EVADE, SPELL_MISS_MISS, SPELL_MISS_NONE, SPELL_MISS_PARRY, SPELL_MISS_REFLECT, SPELL_MISS_RESIST, SPELL_STATE_DELAYED, Unit::SpellCriticalHealingBonus(), CreatureAI::SpellHit(), SpellNonMeleeDamage::target, Spell::TargetInfo::targetGUID, Spell::TargetInfo::timeDelay, Object::ToCreature(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_STAND_STATE_STAND, and unitTarget.
Referenced by _handle_immediate_phase(), handle_delayed(), and handle_immediate().
Definition at line 510 of file SpellEffectsCombat.cpp.
References BATTLEGROUND_AB, BATTLEGROUND_AV, BATTLEGROUND_TYPE_NONE, BATTLEGROUND_WS, CanCreateExtraItems(), Player::CanStoreNewItem(), ItemTemplate::Class, CONFIG_EXPANSION, damage, EQUIP_ERR_INV_FULL, EQUIP_ERR_ITEM_MAX_COUNT, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_OK, Item::GenerateItemRandomPropertyId(), Object::GetGUID(), Object::GetGUIDLow(), Player::GetGuild(), ItemTemplate::GetMaxStackSize(), Item::GetTemplate(), GUILD_NEWS_ITEM_CRAFTED, ITEM_CLASS_CONSUMABLE, ITEM_CLASS_QUEST, ITEM_FIELD_CREATOR, ITEM_QUALITY_EPIC, ItemTemplate::ItemId, ItemTemplate::ItemLevel, m_spellInfo, MinNewsItemLevel, NULL_BAG, NULL_SLOT, ItemTemplate::Quality, roll_chance_f(), Player::SendEquipError(), Player::SendNewItem(), Object::SetUInt32Value(), sObjectMgr, SPELL_AB_MARK_LOSER, SPELL_AB_MARK_WINNER, SPELL_AV_MARK_LOSER, SPELL_AV_MARK_WINNER, SPELL_WS_MARK_LOSER, SPELL_WS_MARK_WINNER, Player::StoreNewItem(), sWorld, TYPEID_PLAYER, unitTarget, and Player::UpdateCraftSkill().
Referenced by EffectCreateItem(), EffectCreateItem2(), EffectEnchantItemPerm(), and EffectScriptEffect().
|
protected |
Definition at line 2596 of file Spell.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET, ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET2, ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL2, ACHIEVEMENT_TIMED_TYPE_SPELL_CASTER, ACHIEVEMENT_TIMED_TYPE_SPELL_TARGET, Unit::ApplyDiminishingToDuration(), ASSERT, AURA_INTERRUPT_FLAG_HITBYSPELL, SpellEffectInfo::BasePoints, CallScriptBeforeHitHandlers(), CREATURE_FLAG_EXTRA_ALL_DIMINISH, DIMINISHING_NONE, DRTYPE_ALL, DRTYPE_PLAYER, SpellEffectInfo::Effect, SpellInfo::Effects, CreatureTemplate::flags_extra, Unit::GetCharmerOrOwnerGUID(), Unit::GetCharmerOrOwnerPlayerOrPlayerItself(), Unit::GetCombatTimer(), Creature::GetCreatureTemplate(), Unit::GetDiminishing(), GetDiminishingReturnsGroupForSpell(), GetDiminishingReturnsGroupType(), GetDiminishingReturnsLimitDuration(), Unit::getHostileRefManager(), Object::GetTypeId(), HandleEffects(), Object::HasFlag(), Unit::HasUnitState(), Unit::IncrDiminishing(), Unit::IsControlledByPlayer(), Unit::IsImmunedToDamage(), Unit::IsImmunedToSpell(), Unit::IsImmunedToSpellEffect(), Unit::IsInCombat(), m_caster, m_CastItem, m_diminishGroup, m_diminishLevel, m_originalCaster, m_spellAura, m_spellInfo, m_spellValue, m_triggeredByAuraSpell, MAX_SPELL_EFFECTS, PrepareScriptHitHandlers(), Unit::RemoveAurasByType(), Unit::RemoveAurasWithInterruptFlags(), SPELL_ATTR0_CU_AURA_CC, SPELL_ATTR1_NO_THREAT, SPELL_ATTR3_NO_INITIAL_AGGRO, SPELL_ATTR5_HASTE_AFFECT_DURATION, SPELL_AURA_MOD_STEALTH, SPELL_EFFECT_APPLY_AURA, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_MISS_EVADE, SPELL_MISS_IMMUNE, SPELL_MISS_NONE, HostileRefManager::threatAssist(), Object::ToCreature(), Object::ToPlayer(), Aura::TryRefreshStackOrCreate(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_FIELD_FLAGS, UNIT_FIELD_MOD_CASTING_SPEED, UNIT_FLAG_NON_ATTACKABLE, UNIT_STATE_ATTACK_PLAYER, and unitTarget.
Referenced by DoAllEffectOnTarget().
Definition at line 2790 of file Spell.cpp.
References CanExecuteTriggersOnHit(), Unit::CastSpell(), Unit::GetAura(), Aura::GetDuration(), m_caster, m_hitTriggerSpells, m_spellInfo, Unit::RemoveAurasDueToSpell(), roll_chance_i(), SF_LOG_DEBUG, SPELL_LINK_HIT, sSpellMgr, TRIGGERED_FULL_MASK, and TRIGGERED_IGNORE_TARGET_CHECK.
Referenced by DoAllEffectOnTarget().
| void Spell::EffectActivateObject | ( | SpellEffIndex | effIndex | ) |
Definition at line 626 of file SpellEffectsSummon.cpp.
References ScriptInfo::command, effectHandleMode, gameObjTarget, m_caster, SCRIPT_COMMAND_ACTIVATE_OBJECT, and SPELL_EFFECT_HANDLE_HIT_TARGET.
| void Spell::EffectActivateRune | ( | SpellEffIndex | effIndex | ) |
Definition at line 1551 of file SpellEffectsCombat.cpp.
References CLASS_DEATH_KNIGHT, damage, effectHandleMode, Player::GetBaseRune(), Unit::getClass(), Player::GetCurrentRune(), Player::GetRuneCooldown(), Skyfire::Spells::IsBloodTapRuneSpell(), Skyfire::Spells::IsEmpowerRuneWeaponSpell(), m_caster, m_runesState, m_spellInfo, MAX_RUNES, Player::ResyncRunes(), RUNE_DEATH, RUNE_FROST, Player::SetRuneCooldown(), SPELL_EFFECT_HANDLE_LAUNCH, and TYPEID_PLAYER.
| void Spell::EffectActivateSpec | ( | SpellEffIndex | effIndex | ) |
Definition at line 250 of file SpellEffectsProgression.cpp.
References damage, effectHandleMode, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectAddComboPoints | ( | SpellEffIndex | effIndex | ) |
Definition at line 1346 of file SpellEffectsCombat.cpp.
References damage, effectHandleMode, m_caster, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectAddExtraAttacks | ( | SpellEffIndex | effIndex | ) |
Definition at line 1363 of file SpellEffectsCombat.cpp.
References damage, effectHandleMode, ExecuteLogEffectExtraAttacks(), SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectAddFarsight | ( | SpellEffIndex | effIndex | ) |
Definition at line 245 of file SpellEffectsMovement.cpp.
References DynamicObject::CreateDynamicObject(), destTarget, DYNAMIC_OBJECT_FARSIGHT_FOCUS, effectHandleMode, HIGHGUID_DYNAMICOBJECT, m_caster, m_spellInfo, DynamicObject::SetCasterViewpoint(), DynamicObject::SetDuration(), sObjectMgr, SPELL_EFFECT_HANDLE_HIT, and TYPEID_PLAYER.
| void Spell::EffectApplyAreaAura | ( | SpellEffIndex | effIndex | ) |
Definition at line 70 of file SpellEffectsAura.cpp.
References ASSERT, effectHandleMode, m_spellAura, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectApplyAura | ( | SpellEffIndex | effIndex | ) |
Definition at line 59 of file SpellEffectsAura.cpp.
References ASSERT, effectHandleMode, m_spellAura, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectApplyGlyph | ( | SpellEffIndex | effIndex | ) |
Definition at line 150 of file SpellEffectsProgression.cpp.
References Unit::CastSpell(), effectHandleMode, Player::GetActiveSpec(), Player::GetGlyph(), Player::GetGlyphSlot(), m_caster, m_glyphIndex, m_spellInfo, MAX_GLYPH_SLOT_INDEX, Unit::RemoveAurasDueToSpell(), SendCastResult(), Player::SendTalentsInfoData(), Player::SetGlyph(), sGlyphPropertiesStore, sGlyphSlotStore, SPELL_EFFECT_HANDLE_HIT, SPELL_FAILED_GLYPH_SOCKET_LOCKED, and SPELL_FAILED_INVALID_GLYPH.
| void Spell::EffectBattlePetsUnlock | ( | SpellEffIndex | effIndex | ) |
Definition at line 1147 of file SpellEffectsSummon.cpp.
References CONFIG_BATTLE_PET_LOADOUT_UNLOCK_COUNT, effectHandleMode, Player::GetBattlePetMgr(), GetCaster(), Object::HasFlag(), Player::learnSpell(), PLAYER_FIELD_PLAYER_FLAGS, PLAYER_FLAGS_BATTLE_PET_ENABLED, BattlePetMgr::SaveToDb(), Object::SetFlag(), SPELL_BATTLE_PET_TRAINING_PASSIVE, SPELL_EFFECT_HANDLE_HIT, SPELL_REVIVE_BATTLE_PETS, SPELL_TRACK_PETS, sWorld, Object::ToPlayer(), and BattlePetMgr::UnlockLoadoutSlot().
| void Spell::EffectBind | ( | SpellEffIndex | effIndex | ) |
Definition at line 486 of file SpellEffectsMovement.cpp.
References destTarget, effectHandleMode, WorldObject::GetAreaId(), WorldLocation::GetMapId(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), WorldPacket::Initialize(), m_caster, WorldLocation::m_mapId, m_spellInfo, m_targets, Player::SendDirectMessage(), Player::SetHomebind(), SF_LOG_DEBUG, SMSG_BIND_POINT_UPDATE, SMSG_PLAYERBOUND, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, unitTarget, WorldLocation::WorldRelocate(), and ByteBuffer::WriteGuidMask().
| void Spell::EffectBlock | ( | SpellEffIndex | effIndex | ) |
Definition at line 1397 of file SpellEffectsCombat.cpp.
References effectHandleMode, m_caster, SPELL_EFFECT_HANDLE_HIT, and TYPEID_PLAYER.
| void Spell::EffectCastButtons | ( | SpellEffIndex | effIndex | ) |
Action button data is unverified when it's set so it can be "hacked" to contain invalid spells, so filter here.
Definition at line 220 of file SpellEffectsMisc.cpp.
References ACTION_BUTTON_SPELL, SpellInfo::AttributesEx9, effectHandleMode, ActionButton::GetAction(), Player::GetActionButton(), ActionButton::GetType(), Player::HasSpell(), Player::HasSpellCooldown(), m_caster, m_powerCost, m_spellInfo, POWER_MANA, SPELL_ATTR9_SUMMON_PLAYER_TOTEM, SPELL_EFFECT_HANDLE_HIT, sSpellMgr, TRIGGERED_CAST_DIRECTLY, TRIGGERED_IGNORE_CAST_IN_PROGRESS, TRIGGERED_IGNORE_GCD, and TYPEID_PLAYER.
| void Spell::EffectCharge | ( | SpellEffIndex | effIndex | ) |
Definition at line 337 of file SpellEffectsMovement.cpp.
References effectHandleMode, m_caster, Position::m_positionX, Position::m_positionY, Position::m_positionZ, m_preGeneratedPath, m_spellInfo, PATHFIND_BLANK, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_EFFECT_HANDLE_LAUNCH_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectChargeDest | ( | SpellEffIndex | effIndex | ) |
Definition at line 364 of file SpellEffectsMovement.cpp.
References destTarget, effectHandleMode, Position::GetPositionX(), Position::GetPositionY(), m_caster, Position::m_positionX, Position::m_positionY, Position::m_positionZ, m_targets, and SPELL_EFFECT_HANDLE_LAUNCH.
| void Spell::EffectCreateAreaTrigger | ( | SpellEffIndex | effIndex | ) |
Definition at line 1122 of file SpellEffectsSummon.cpp.
References DynamicObject::CreateDynamicObject(), destTarget, DYNAMIC_OBJECT_AREA_SPELL, effectHandleMode, HIGHGUID_DYNAMICOBJECT, m_caster, m_originalCaster, m_spellInfo, sObjectMgr, SPELL_EFFECT_HANDLE_HIT, and WORLD_TRIGGER.
| void Spell::EffectCreateItem | ( | SpellEffIndex | effIndex | ) |
Definition at line 60 of file SpellEffectsItems.cpp.
References DoCreateItem(), effectHandleMode, ExecuteLogEffectCreateItem(), m_caster, m_researchData, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, and TYPEID_PLAYER.
| void Spell::EffectCreateItem2 | ( | SpellEffIndex | effIndex | ) |
Definition at line 72 of file SpellEffectsItems.cpp.
References Player::AutoStoreLoot(), Player::DestroyItemCount(), DoCreateItem(), effectHandleMode, Player::HasItemCount(), LootTemplates_Spell, m_caster, m_researchData, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectCreateRandomItem | ( | SpellEffIndex | effIndex | ) |
Definition at line 112 of file SpellEffectsItems.cpp.
References Player::AutoStoreLoot(), effectHandleMode, LootTemplates_Spell, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectCreateTamedPet | ( | SpellEffIndex | effIndex | ) |
Definition at line 958 of file SpellEffectsSummon.cpp.
References Map::AddToMap(), CLASS_HUNTER, effectHandleMode, Minion::GetFollowAngle(), WorldObject::GetMap(), WorldObject::GetObjectSize(), Pet::InitTalentForLevel(), m_spellInfo, PET_FOLLOW_DIST, PET_SAVE_AS_CURRENT, Position::Relocate(), Pet::SavePetToDB(), SPELL_EFFECT_HANDLE_HIT_TARGET, Object::ToCreature(), TYPEID_PLAYER, and unitTarget.
| void Spell::EffectDamageFromMaxHealthPCT | ( | SpellEffIndex | effIndex | ) |
Definition at line 1646 of file SpellEffectsCombat.cpp.
References damage, effectHandleMode, m_damage, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectDestroyAllTotems | ( | SpellEffIndex | effIndex | ) |
Definition at line 783 of file SpellEffectsSummon.cpp.
References ApplyPct(), damage, effectHandleMode, Object::GetUInt32Value(), Unit::IsTotem(), m_caster, MAX_TOTEM_SLOT, SPELL_EFFECT_HANDLE_HIT, sSpellMgr, SUMMON_SLOT_TOTEM, Unit::ToTotem(), UNIT_FIELD_CREATED_BY_SPELL, and Totem::UnSummon().
| void Spell::EffectDestroyItem | ( | SpellEffIndex | effIndex | ) |
Definition at line 654 of file SpellEffectsItems.cpp.
References Player::DestroyItem(), effectHandleMode, Player::GetItemByEntry(), m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectDiscoverTaxi | ( | SpellEffIndex | effIndex | ) |
Definition at line 474 of file SpellEffectsMovement.cpp.
References effectHandleMode, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, sTaxiNodesStore, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectDisEnchant | ( | SpellEffIndex | effIndex | ) |
Definition at line 503 of file SpellEffectsItems.cpp.
References effectHandleMode, itemTarget, LOOT_DISENCHANTING, m_caster, m_spellInfo, and SPELL_EFFECT_HANDLE_HIT_TARGET.
| void Spell::EffectDismissPet | ( | SpellEffIndex | effIndex | ) |
Definition at line 675 of file SpellEffectsSummon.cpp.
References effectHandleMode, ExecuteLogEffectUnsummonObject(), Pet::GetOwner(), PET_SAVE_NOT_IN_SLOT, Player::RemovePet(), SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectDispel | ( | SpellEffIndex | effIndex | ) |
Definition at line 830 of file SpellEffectsCombat.cpp.
References damage, EFFECT_1, effectHandleMode, ByteBuffer::FlushBits(), SpellInfo::GetDispelMask(), m_caster, m_spellInfo, roll_chance_i(), SMSG_DISPEL_FAILED, SMSG_SPELLDISPELLOG, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELLCATEGORY_DEVOUR_MAGIC, SPELLFAMILY_WARLOCK, unitTarget, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void Spell::EffectDispelMechanic | ( | SpellEffIndex | effIndex | ) |
Definition at line 1406 of file SpellEffectsCombat.cpp.
References AURA_REMOVE_BY_ENEMY_SPELL, Aura::CalcDispelChance(), effectHandleMode, SpellInfo::GetAllEffectsMechanicMask(), Aura::GetApplicationOfTarget(), Aura::GetCasterGUID(), Aura::GetId(), Aura::GetSpellInfo(), Skyfire::Spells::HasMechanic(), m_caster, m_spellInfo, roll_chance_i(), SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectDistract | ( | SpellEffIndex | effIndex | ) |
Definition at line 225 of file SpellEffectsMovement.cpp.
References damage, destTarget, effectHandleMode, IN_MILLISECONDS, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_UNIT, UNIT_STATE_CONFUSED, UNIT_STATE_FLEEING, UNIT_STATE_MOVING, UNIT_STATE_STUNNED, and unitTarget.
| void Spell::EffectDodge | ( | SpellEffIndex | effIndex | ) |
Definition at line 1379 of file SpellEffectsCombat.cpp.
References effectHandleMode, m_caster, SPELL_EFFECT_HANDLE_HIT, and TYPEID_PLAYER.
| void Spell::EffectDualWield | ( | SpellEffIndex | effIndex | ) |
Definition at line 968 of file SpellEffectsCombat.cpp.
References effectHandleMode, OFF_ATTACK, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_UNIT, and unitTarget.
| void Spell::EffectDuel | ( | SpellEffIndex | effIndex | ) |
Definition at line 59 of file SpellEffectsMisc.cpp.
References Map::AddToMap(), AREA_FLAG_ALLOW_DUELS, GameObject::Create(), Player::duel, effectHandleMode, ExecuteLogEffectSummonObject(), GAMEOBJECT_FIELD_FACTION_TEMPLATE, GAMEOBJECT_FIELD_LEVEL, GetAreaEntryByAreaID(), WorldObject::GetAreaId(), Object::GetGUID(), Object::GetGUIDLow(), Player::GetSession(), Player::GetSocial(), GetSpellInfo(), GO_STATE_READY, PlayerSocial::HasIgnore(), HIGHGUID_GAMEOBJECT, SpellInfo::Id, IN_MILLISECONDS, DuelInfo::initiator, DuelInfo::isMounted, m_caster, AreaTableEntry::m_flags, m_spellInfo, DuelInfo::opponent, PLAYER_FIELD_DUEL_ARBITER, SendCastResult(), WorldSession::SendPacket(), GameObject::SetPhased(), GameObject::SetRespawnTime(), GameObject::SetSpellId(), Object::SetUInt32Value(), Object::SetUInt64Value(), SMSG_DUEL_REQUESTED, sObjectMgr, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_FAILED_NO_DUELING, sScriptMgr, DuelInfo::startTime, DuelInfo::startTimer, TYPEID_PLAYER, unitTarget, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void Spell::EffectDummy | ( | SpellEffIndex | effIndex | ) |
Definition at line 60 of file SpellEffectsScript.cpp.
References AddUnitTarget(), effectHandleMode, gameObjTarget, itemTarget, m_caster, m_originalCasterGUID, m_spellInfo, m_UniqueTargetInfo, prepare(), Skyfire::Containers::SelectRandomContainerElement(), SetSpellValue(), SpellCastTargets::SetUnitTarget(), SF_LOG_DEBUG, SF_LOG_ERROR, Spell(), SPELL_EFFECT_HANDLE_HIT_TARGET, SPELLFAMILY_PALADIN, SPELLVALUE_BASE_POINT0, sScriptMgr, sSpellMgr, sSpellScripts, TRIGGERED_FULL_MASK, TRIGGERED_NONE, TYPEID_UNIT, and unitTarget.
| void Spell::EffectDurabilityDamage | ( | SpellEffIndex | effIndex | ) |
Definition at line 546 of file SpellEffectsItems.cpp.
References damage, effectHandleMode, ExecuteLogEffectDurabilityDamage(), INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectDurabilityDamagePCT | ( | SpellEffIndex | effIndex | ) |
Definition at line 575 of file SpellEffectsItems.cpp.
References damage, effectHandleMode, INVENTORY_SLOT_BAG_0, INVENTORY_SLOT_BAG_END, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectEnchantHeldItem | ( | SpellEffIndex | effIndex | ) |
Definition at line 458 of file SpellEffectsItems.cpp.
References Player::ApplyEnchantment(), damage, effectHandleMode, EQUIPMENT_SLOT_MAINHAND, Item::GetEnchantmentId(), Player::GetItemByPos(), IN_MILLISECONDS, INVENTORY_SLOT_BAG_0, Item::IsEquipped(), m_caster, m_spellInfo, Item::SetEnchantment(), SPELL_EFFECT_HANDLE_HIT_TARGET, sSpellItemEnchantmentStore, TEMP_ENCHANTMENT_SLOT, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectEnchantItemPerm | ( | SpellEffIndex | effIndex | ) |
Definition at line 269 of file SpellEffectsItems.cpp.
References Player::ApplyEnchantment(), Player::DestroyItemCount(), DoCreateItem(), effectHandleMode, WorldSession::GetAccountId(), WorldObject::GetName(), Player::GetSession(), WorldSession::HasPermission(), ITEM_PROTO_FLAG_TRIGGERED_CAST, itemTarget, m_caster, m_CastItem, m_spellInfo, m_targets, PERM_ENCHANTMENT_SLOT, rbac::RBAC_PERM_LOG_GM_TRADE, Player::RemoveTradeableItem(), SF_LOG_ERROR, sLog, SPELL_EFFECT_HANDLE_HIT_TARGET, sSpellItemEnchantmentStore, unitTarget, and Player::UpdateCraftSkill().
| void Spell::EffectEnchantItemPrismatic | ( | SpellEffIndex | effIndex | ) |
Definition at line 339 of file SpellEffectsItems.cpp.
References Player::ApplyEnchantment(), effectHandleMode, WorldSession::GetAccountId(), WorldObject::GetName(), Player::GetSession(), WorldSession::HasPermission(), ITEM_ENCHANTMENT_TYPE_PRISMATIC_SOCKET, itemTarget, m_caster, m_spellInfo, MAX_ITEM_ENCHANTMENT_EFFECTS, PRISMATIC_ENCHANTMENT_SLOT, rbac::RBAC_PERM_LOG_GM_TRADE, Player::RemoveTradeableItem(), SF_LOG_ERROR, sLog, SPELL_EFFECT_ENCHANT_ITEM_PRISMATIC, SPELL_EFFECT_HANDLE_HIT_TARGET, sSpellItemEnchantmentStore, and SpellItemEnchantmentEntry::type.
| void Spell::EffectEnchantItemTmp | ( | SpellEffIndex | effIndex | ) |
Definition at line 403 of file SpellEffectsItems.cpp.
References Player::ApplyEnchantment(), effectHandleMode, WorldSession::GetAccountId(), WorldObject::GetName(), Player::GetSession(), Skyfire::Spells::GetTemporaryItemEnchantDurationSeconds(), WorldSession::HasPermission(), itemTarget, m_caster, m_spellInfo, rbac::RBAC_PERM_LOG_GM_TRADE, SF_LOG_ERROR, sLog, SPELL_EFFECT_HANDLE_HIT_TARGET, sSpellItemEnchantmentStore, and TEMP_ENCHANTMENT_SLOT.
| void Spell::EffectEnergize | ( | SpellEffIndex | effIndex | ) |
Definition at line 625 of file SpellEffectsCombat.cpp.
References AddPct(), CalculatePct(), damage, EFFECT_31, effectHandleMode, Skyfire::Spells::GetEnergizeLevelScalingRule(), Skyfire::Spells::GetEngineeringHealingBonusPct(), Skyfire::Spells::GetJabBaseChi(), Skyfire::Spells::GetStanceOfTheFierceTigerAuraSpellId(), Skyfire::Spells::IsJabEnergizeSpell(), Skyfire::Spells::IsMadAlchemistsPotionSpell(), Skyfire::Spells::IsPrimalWisdomEnergizeSpell(), Skyfire::Spells::IsRunicManaInjectorSpell(), m_caster, m_CastItem, m_spellInfo, MAX_POWERS, POWER_ECLIPSE, Skyfire::Containers::SelectRandomContainerElement(), SKILL_ENGINEERING, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_GROUP_ELIXIR_BATTLE, SPELL_GROUP_ELIXIR_GUARDIAN, SPELL_GROUP_ELIXIR_SHATTRATH, SPELL_GROUP_ELIXIR_UNSTABLE, SpellInfo::SpellLevel, sSpellMgr, and unitTarget.
| void Spell::EffectEnergizePct | ( | SpellEffIndex | effIndex | ) |
Definition at line 729 of file SpellEffectsCombat.cpp.
References CalculatePct(), damage, EFFECT_31, effectHandleMode, m_caster, m_spellInfo, MAX_POWERS, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectEnvironmentalDMG | ( | SpellEffIndex | effIndex | ) |
Definition at line 120 of file SpellEffectsCombat.cpp.
References damage, DAMAGE_FIRE, effectHandleMode, m_caster, m_spellInfo, SPELL_DIRECT_DAMAGE, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectFeedPet | ( | SpellEffIndex | effIndex | ) |
Definition at line 642 of file SpellEffectsSummon.cpp.
References Player::DestroyItemCount(), effectHandleMode, ExecuteLogEffectDestroyItem(), Pet::GetCurrentFoodBenefitLevel(), Object::GetEntry(), Player::GetPet(), Item::GetTemplate(), Unit::IsAlive(), ItemTemplate::ItemLevel, itemTarget, m_caster, m_spellInfo, and SPELL_EFFECT_HANDLE_HIT_TARGET.
| void Spell::EffectForceCast | ( | SpellEffIndex | effIndex | ) |
Definition at line 242 of file SpellEffectsTrigger.cpp.
References CustomSpellValues::AddSpellMod(), damage, effectHandleMode, Skyfire::Spells::FORCE_CAST_DAMAGE_RULE_CUSTOM_BASEPOINTS, Skyfire::Spells::FORCE_CAST_DAMAGE_RULE_REMOVE_AURA, Skyfire::Spells::FORCE_CAST_DAMAGE_RULE_TRIGGERED_ORIGINAL_CASTER, Skyfire::Spells::GetForceCastDamageRule(), SpellInfo::Id, m_caster, m_originalCasterGUID, m_spellInfo, SpellCastTargets::SetUnitTarget(), SF_LOG_ERROR, SPELL_EFFECT_FORCE_CAST, SPELL_EFFECT_FORCE_CAST_WITH_VALUE, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELLVALUE_BASE_POINT0, SPELLVALUE_BASE_POINT1, SPELLVALUE_BASE_POINT2, sSpellMgr, TRIGGERED_FULL_MASK, and unitTarget.
| void Spell::EffectForceDeselect | ( | SpellEffIndex | effIndex | ) |
Definition at line 193 of file SpellEffectsMisc.cpp.
References effectHandleMode, m_caster, SMSG_CLEAR_TARGET, SPELL_EFFECT_HANDLE_HIT, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void Spell::EffectGameObjectDamage | ( | SpellEffIndex | effIndex | ) |
Definition at line 991 of file SpellEffectsSummon.cpp.
References damage, effectHandleMode, GAMEOBJECT_FIELD_FACTION_TEMPLATE, gameObjTarget, Unit::GetFactionTemplateEntry(), GetSpellInfo(), FactionTemplateEntry::IsFriendlyTo(), m_originalCaster, sFactionTemplateStore, and SPELL_EFFECT_HANDLE_HIT_TARGET.
| void Spell::EffectGameObjectRepair | ( | SpellEffIndex | effIndex | ) |
Definition at line 1010 of file SpellEffectsSummon.cpp.
References damage, effectHandleMode, gameObjTarget, m_caster, and SPELL_EFFECT_HANDLE_HIT_TARGET.
| void Spell::EffectGameObjectSetDestructionState | ( | SpellEffIndex | effIndex | ) |
Definition at line 1021 of file SpellEffectsSummon.cpp.
References effectHandleMode, gameObjTarget, m_originalCaster, m_spellInfo, and SPELL_EFFECT_HANDLE_HIT_TARGET.
| void Spell::EffectGiveCurrency | ( | SpellEffIndex | effIndex | ) |
Definition at line 211 of file SpellEffectsQuest.cpp.
References damage, effectHandleMode, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectHeal | ( | SpellEffIndex | effIndex | ) |
Definition at line 349 of file SpellEffectsCombat.cpp.
References AddPct(), AURA_STATE_SWIFTMEND, Unit::CountPctFromMaxHealth(), damage, DOT, effectHandleMode, AuraEffect::GetAmount(), AuraEffect::GetBase(), AuraEffect::GetCaster(), AuraEffect::GetCasterGUID(), Aura::GetDuration(), Skyfire::Spells::GetEngineeringHealingBonusPct(), AuraEffect::GetId(), AuraEffect::GetSpellInfo(), Skyfire::Spells::GetVesselOfTheNaaruStackAuraSpellId(), Unit::HasAura(), HEAL, Skyfire::Spells::IsRunicHealingInjectorSpell(), Skyfire::Spells::IsVesselOfTheNaaruHealSpell(), m_caster, m_damage, m_originalCaster, m_originalCasterGUID, m_spellInfo, SF_LOG_ERROR, SKILL_ENGINEERING, SPELL_AURA_PERIODIC_HEAL, SPELL_EFFECT_HANDLE_LAUNCH_TARGET, SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_DRUID, SpellInfo::SpellFamilyFlags, Unit::SpellHealingBonusDone(), UI64FMTD, and unitTarget.
| void Spell::EffectHealBattlePetPct | ( | SpellEffIndex | effIndex | ) |
Definition at line 1175 of file SpellEffectsSummon.cpp.
References effectHandleMode, Player::GetBattlePetMgr(), GetCaster(), Player::GetSpellCooldownDelay(), BattlePetMgr::HealBattlePets(), IN_MILLISECONDS, m_caster, m_spellInfo, BattlePetMgr::SaveToDb(), Player::SendSpellCooldown(), SPELL_EFFECT_HANDLE_HIT, SPELL_REVIVE_BATTLE_PETS, and Object::ToPlayer().
| void Spell::EffectHealMaxHealth | ( | SpellEffIndex | effIndex | ) |
Definition at line 1259 of file SpellEffectsCombat.cpp.
References damage, effectHandleMode, m_caster, m_healing, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectHealMechanical | ( | SpellEffIndex | effIndex | ) |
Definition at line 465 of file SpellEffectsCombat.cpp.
References damage, effectHandleMode, HEAL, m_healing, m_originalCaster, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectHealPct | ( | SpellEffIndex | effIndex | ) |
Definition at line 447 of file SpellEffectsCombat.cpp.
References damage, effectHandleMode, HEAL, m_healing, m_originalCaster, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectHealthLeech | ( | SpellEffIndex | effIndex | ) |
Definition at line 482 of file SpellEffectsCombat.cpp.
References damage, effectHandleMode, HEAL, m_caster, m_damage, m_originalCaster, m_spellInfo, SF_LOG_DEBUG, SPELL_DIRECT_DAMAGE, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectInebriate | ( | SpellEffIndex | effIndex | ) |
Definition at line 170 of file SpellEffectsMisc.cpp.
References Unit::CastSpell(), damage, effectHandleMode, Player::GetDrunkValue(), m_CastItem, rand_chance(), Player::SetDrunkValue(), SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectInstaKill | ( | SpellEffIndex | effIndex | ) |
Definition at line 60 of file SpellEffectsCombat.cpp.
References CHEAT_GOD, effectHandleMode, finish(), m_caster, m_spellInfo, NODAMAGE, SMSG_SPELLINSTAKILLLOG, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_SCHOOL_MASK_NORMAL, TYPEID_PLAYER, unitTarget, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
| void Spell::EffectInterruptCast | ( | SpellEffIndex | effIndex | ) |
Definition at line 1278 of file SpellEffectsCombat.cpp.
References CHANNEL_INTERRUPT_FLAG_INTERRUPT, SpellInfo::ChannelInterruptFlags, CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_FIRST_NON_MELEE_SPELL, CURRENT_GENERIC_SPELL, effectHandleMode, ExecuteLogEffectInterruptCast(), SpellInfo::GetSchoolMask(), SpellInfo::Id, SpellInfo::InterruptFlags, m_originalCaster, m_spellInfo, SpellInfo::PreventionType, Spell(), SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_INTERRUPT_FLAG_INTERRUPT, SPELL_PREVENTION_TYPE_SILENCE, SPELL_PREVENTION_TYPE_UNK, SPELL_STATE_CASTING, SPELL_STATE_PREPARING, and unitTarget.
| void Spell::EffectJump | ( | SpellEffIndex | effIndex | ) |
Definition at line 60 of file SpellEffectsMovement.cpp.
References CalculateJumpSpeeds(), CONTACT_DISTANCE, effectHandleMode, m_caster, SPELL_EFFECT_HANDLE_LAUNCH_TARGET, and unitTarget.
| void Spell::EffectJumpDest | ( | SpellEffIndex | effIndex | ) |
Definition at line 82 of file SpellEffectsMovement.cpp.
References CalculateJumpSpeeds(), destTarget, effectHandleMode, Skyfire::Spells::GetJumpDestOverride(), m_caster, m_spellInfo, m_targets, and SPELL_EFFECT_HANDLE_LAUNCH.
| void Spell::EffectKillCredit | ( | SpellEffIndex | effIndex | ) |
Definition at line 161 of file SpellEffectsQuest.cpp.
References effectHandleMode, Skyfire::Spells::GetKillCreditFallbackCreatureEntry(), m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectKillCreditPersonal | ( | SpellEffIndex | effIndex | ) |
Definition at line 150 of file SpellEffectsQuest.cpp.
References effectHandleMode, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectKnockBack | ( | SpellEffIndex | effIndex | ) |
Definition at line 381 of file SpellEffectsMovement.cpp.
References damage, destTarget, effectHandleMode, m_caster, m_spellInfo, m_targets, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_EFFECT_KNOCK_BACK_DEST, UNIT_STATE_ROOT, UNIT_STATE_STUNNED, and unitTarget.
| void Spell::EffectLeap | ( | SpellEffIndex | effIndex | ) |
Definition at line 320 of file SpellEffectsMovement.cpp.
References destTarget, effectHandleMode, Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), m_caster, m_targets, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectLeapBack | ( | SpellEffIndex | effIndex | ) |
Definition at line 423 of file SpellEffectsMovement.cpp.
References damage, effectHandleMode, m_caster, m_spellInfo, SPELL_EFFECT_HANDLE_LAUNCH_TARGET, and unitTarget.
| void Spell::EffectLearnPetSpell | ( | SpellEffIndex | effIndex | ) |
Definition at line 500 of file SpellEffectsSummon.cpp.
References effectHandleMode, EffectLearnSpell(), Pet::GetOwner(), SpellInfo::Id, Pet::learnSpell(), m_spellInfo, PET_SAVE_AS_CURRENT, Player::PetSpellInitialize(), Pet::SavePetToDB(), SPELL_EFFECT_HANDLE_HIT_TARGET, sSpellMgr, and unitTarget.
Referenced by EffectLearnSpell().
| void Spell::EffectLearnSkill | ( | SpellEffIndex | effIndex | ) |
Definition at line 134 of file SpellEffectsProgression.cpp.
References damage, effectHandleMode, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectLearnSpell | ( | SpellEffIndex | effIndex | ) |
Definition at line 98 of file SpellEffectsProgression.cpp.
References damage, effectHandleMode, EffectLearnPetSpell(), Object::GetGUIDLow(), Player::learnSpell(), m_caster, m_spellInfo, SF_LOG_DEBUG, Skyfire::Spells::ShouldLearnSpellFromEffectDamage(), SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
Referenced by EffectLearnPetSpell().
| void Spell::EffectMilling | ( | SpellEffIndex | effIndex | ) |
Definition at line 629 of file SpellEffectsItems.cpp.
References CONFIG_SKILL_MILLING, effectHandleMode, Player::GetPureSkillValue(), ITEM_PROTO_FLAG_MILLABLE, itemTarget, LOOT_MILLING, m_caster, Player::SendLoot(), SKILL_INSCRIPTION, SPELL_EFFECT_HANDLE_HIT_TARGET, sWorld, and Player::UpdateGatherSkill().
| void Spell::EffectModifyThreatPercent | ( | SpellEffIndex | effIndex | ) |
Definition at line 1435 of file SpellEffectsCombat.cpp.
References damage, effectHandleMode, m_caster, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectNULL | ( | SpellEffIndex | effIndex | ) |
Definition at line 277 of file SpellEffects.cpp.
References Skyfire::Spells::ClassifySpellDispatchHandler(), Skyfire::Spells::GetSpellDispatchValidationStatusName(), m_spellInfo, SF_LOG_DEBUG, and Skyfire::Spells::SPELL_DISPATCH_HANDLER_NULL.
Referenced by EffectPull().
| void Spell::EffectOpenLock | ( | SpellEffIndex | effIndex | ) |
Definition at line 126 of file SpellEffectsItems.cpp.
References BATTLEGROUND_EY, GameObjectTemplate::button, CanOpenLock(), effectHandleMode, ExecuteLogEffectOpenLock(), GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_FLAGSTAND, GAMEOBJECT_TYPE_GOOBER, gameObjTarget, Player::GetBattleground(), Object::GetGUIDLow(), GameObjectTemplate::GetLockId(), Player::GetPureSkillValue(), GO_JUST_DEACTIVATED, GameObjectTemplate::goober, ITEM_FIELD_DYNAMIC_FLAGS, ITEM_FLAG_UNLOCKED, itemTarget, LOOT_SKINNING, GameObjectTemplate::losOK, m_caster, m_CastItem, m_spellInfo, GameObjectTemplate::noDamageImmune, Player::OnArchaeologyFindUsed(), SendCastResult(), SendLoot(), SF_LOG_DEBUG, Skyfire::Spells::ShouldDeactivateOwnedTrapOnOpenLock(), SKILL_NONE, sOutdoorPvPMgr, SPELL_CAST_OK, SPELL_EFFECT_HANDLE_HIT_TARGET, GameObjectTemplate::type, TYPEID_PLAYER, and Player::UpdateGatherSkill().
| void Spell::EffectParry | ( | SpellEffIndex | effIndex | ) |
Definition at line 1388 of file SpellEffectsCombat.cpp.
References effectHandleMode, m_caster, SPELL_EFFECT_HANDLE_HIT, and TYPEID_PLAYER.
| void Spell::EffectPersistentAA | ( | SpellEffIndex | effIndex | ) |
Definition at line 81 of file SpellEffectsAura.cpp.
References ASSERT, DynamicObject::CreateDynamicObject(), destTarget, DYNAMIC_OBJECT_AREA_SPELL, effectHandleMode, HIGHGUID_DYNAMICOBJECT, Object::IsInWorld(), m_caster, m_originalCaster, m_spellAura, m_spellInfo, m_spellValue, MAX_EFFECT_MASK, sObjectMgr, SPELL_EFFECT_HANDLE_HIT, Aura::TryCreate(), and WORLD_TRIGGER.
| void Spell::EffectPickPocket | ( | SpellEffIndex | effIndex | ) |
Definition at line 240 of file SpellEffectsItems.cpp.
References CREATURE_TYPEMASK_HUMANOID_OR_UNDEAD, effectHandleMode, LOOT_PICKPOCKETING, m_caster, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, TYPEID_UNIT, and unitTarget.
| void Spell::EffectPlayMovie | ( | SpellEffIndex | effIndex | ) |
Definition at line 60 of file SpellEffectsMedia.cpp.
References effectHandleMode, SpellInfo::Effects, GetSpellInfo(), SpellEffectInfo::MiscValue, sMovieStore, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectPlayMusic | ( | SpellEffIndex | effIndex | ) |
Definition at line 75 of file SpellEffectsMedia.cpp.
References effectHandleMode, m_spellInfo, SF_LOG_ERROR, SPELL_EFFECT_HANDLE_HIT_TARGET, sSoundEntriesStore, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectPlaySound | ( | SpellEffIndex | effIndex | ) |
Definition at line 94 of file SpellEffectsMedia.cpp.
References effectHandleMode, LANG_ZONE_NOFLYZONE, m_caster, m_spellInfo, SF_LOG_ERROR, Skyfire::Spells::ShouldSendNoFlyZoneNotification(), SMSG_PLAY_SOUND, SPELL_EFFECT_HANDLE_HIT_TARGET, sSoundEntriesStore, TYPEID_PLAYER, unitTarget, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
| void Spell::EffectPowerBurn | ( | SpellEffIndex | effIndex | ) |
Definition at line 312 of file SpellEffectsCombat.cpp.
References CalculatePct(), damage, EFFECT_31, effectHandleMode, ExecuteLogEffectTakeTargetPower(), Skyfire::Spells::IsManaBurnSpell(), m_caster, m_damage, m_originalCaster, m_spellInfo, MAX_POWERS, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectPowerDrain | ( | SpellEffIndex | effIndex | ) |
Definition at line 276 of file SpellEffectsCombat.cpp.
References damage, EFFECT_31, effectHandleMode, ExecuteLogEffectTakeTargetPower(), m_caster, m_originalCaster, m_spellInfo, MAX_POWERS, SPELL_DIRECT_DAMAGE, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectProficiency | ( | SpellEffIndex | effIndex | ) |
Definition at line 76 of file SpellEffectsProgression.cpp.
References Player::AddArmorProficiency(), Player::AddWeaponProficiency(), effectHandleMode, Player::GetArmorProficiency(), Player::GetWeaponProficiency(), ITEM_CLASS_ARMOR, ITEM_CLASS_WEAPON, m_caster, m_spellInfo, Player::SendProficiency(), SPELL_EFFECT_HANDLE_HIT, and TYPEID_PLAYER.
| void Spell::EffectProspecting | ( | SpellEffIndex | effIndex | ) |
Definition at line 604 of file SpellEffectsItems.cpp.
References CONFIG_SKILL_PROSPECTING, effectHandleMode, Player::GetPureSkillValue(), ITEM_PROTO_FLAG_PROSPECTABLE, itemTarget, LOOT_PROSPECTING, m_caster, Player::SendLoot(), SKILL_JEWELCRAFTING, SPELL_EFFECT_HANDLE_HIT_TARGET, sWorld, and Player::UpdateGatherSkill().
| void Spell::EffectPull | ( | SpellEffIndex | effIndex | ) |
Definition at line 219 of file SpellEffectsMovement.cpp.
References EffectNULL().
| void Spell::EffectPullTowards | ( | SpellEffIndex | effIndex | ) |
Definition at line 448 of file SpellEffectsMovement.cpp.
References destTarget, effectHandleMode, Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), m_caster, m_spellInfo, m_targets, Position::Relocate(), SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_EFFECT_PULL_TOWARDS_DEST, and unitTarget.
| void Spell::EffectQuestClear | ( | SpellEffIndex | effIndex | ) |
Definition at line 107 of file SpellEffectsQuest.cpp.
References effectHandleMode, Player::GetQuestSlotQuestId(), Player::GetQuestStatus(), Quest::HasFlag(), Player::HasPvPForcingQuest(), PvPInfo::IsHostile, PvPInfo::IsInHostileArea, m_spellInfo, MAX_QUEST_LOG_SIZE, Player::pvpInfo, QUEST_FLAGS_FLAGS_PVP, QUEST_STATUS_NONE, Player::RemoveActiveQuest(), Player::RemoveRewardedQuest(), Player::SetQuestSlot(), sObjectMgr, SPELL_EFFECT_HANDLE_HIT_TARGET, Player::TakeQuestSourceItem(), TYPEID_PLAYER, unitTarget, and Player::UpdatePvPState().
| void Spell::EffectQuestComplete | ( | SpellEffIndex | effIndex | ) |
Definition at line 83 of file SpellEffectsQuest.cpp.
References Player::AreaExploredOrEventHappens(), Player::CanTakeQuest(), Player::CompleteQuest(), effectHandleMode, Player::FindQuestSlot(), m_spellInfo, MAX_QUEST_LOG_SIZE, sObjectMgr, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectQuestFail | ( | SpellEffIndex | effIndex | ) |
Definition at line 177 of file SpellEffectsQuest.cpp.
References effectHandleMode, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectQuestStart | ( | SpellEffIndex | effIndex | ) |
Definition at line 188 of file SpellEffectsQuest.cpp.
References Player::AddQuest(), Player::CanAddQuest(), Player::CanCompleteQuest(), Player::CanTakeQuest(), Player::CompleteQuest(), effectHandleMode, m_spellInfo, sObjectMgr, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectRechargeManaGem | ( | SpellEffIndex | effIndex | ) |
Definition at line 669 of file SpellEffectsItems.cpp.
References EFFECT_0, effectHandleMode, EQUIP_ERR_ITEM_NOT_FOUND, Player::GetItemByEntry(), ITEM_CHANGED, m_caster, m_spellInfo, MAX_ITEM_PROTO_SPELLS, Player::SendEquipError(), sObjectMgr, SPELL_EFFECT_HANDLE_HIT_TARGET, _Spell::SpellCharges, ItemTemplate::Spells, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectRedirectThreat | ( | SpellEffIndex | effIndex | ) |
Definition at line 1626 of file SpellEffectsCombat.cpp.
References damage, effectHandleMode, m_caster, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectRemoveAura | ( | SpellEffIndex | effIndex | ) |
Definition at line 1635 of file SpellEffectsCombat.cpp.
References effectHandleMode, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectRemoveTalent | ( | SpellEffIndex | effIndex | ) |
Definition at line 261 of file SpellEffectsProgression.cpp.
References effectHandleMode, GetCaster(), m_glyphIndex, Player::RemoveTalent(), SPELL_EFFECT_HANDLE_HIT, and Object::ToPlayer().
| void Spell::EffectRenamePet | ( | SpellEffIndex | effIndex | ) |
Definition at line 1099 of file SpellEffectsSummon.cpp.
References effectHandleMode, HUNTER_PET, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_UNIT, UNIT_CAN_BE_RENAMED, UNIT_FIELD_SHAPESHIFT_FORM, and unitTarget.
| void Spell::EffectReputation | ( | SpellEffIndex | effIndex | ) |
Definition at line 60 of file SpellEffectsQuest.cpp.
References Player::CalculateReputationGain(), damage, effectHandleMode, Player::GetReputationMgr(), m_spellInfo, ReputationMgr::ModifyReputation(), REPUTATION_SOURCE_SPELL, sFactionStore, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectResurrect | ( | SpellEffIndex | effIndex | ) |
Definition at line 85 of file SpellEffectsLifecycle.cpp.
References CalculatePct(), Unit::CountPctFromMaxHealth(), damage, EFFECT_0, EFFECT_1, effectHandleMode, ExecuteLogEffectResurrect(), Unit::GetMaxPower(), Player::IsRessurectRequested(), m_caster, m_spellInfo, POWER_MANA, SendResurrectRequest(), Player::SetResurrectRequestData(), SPELL_ATTR8_COMBAT_RESURECTION_LIMIT, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectResurrectNew | ( | SpellEffIndex | effIndex | ) |
Definition at line 59 of file SpellEffectsLifecycle.cpp.
References damage, effectHandleMode, ExecuteLogEffectResurrect(), Player::IsRessurectRequested(), m_caster, m_spellInfo, SendResurrectRequest(), Player::SetResurrectRequestData(), SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectResurrectWithAura | ( | SpellEffIndex | effIndex | ) |
Definition at line 192 of file SpellEffectsLifecycle.cpp.
References CalculatePct(), Unit::CountPctFromMaxHealth(), damage, effectHandleMode, SpellInfo::Effects, ExecuteLogEffectResurrect(), Unit::GetMaxPower(), GetSpellInfo(), Unit::HasAura(), Player::IsRessurectRequested(), m_caster, POWER_MANA, SendResurrectRequest(), Player::SetResurrectRequestData(), SPELL_EFFECT_HANDLE_HIT_TARGET, sSpellMgr, SpellEffectInfo::TriggerSpell, and unitTarget.
| void Spell::EffectSanctuary | ( | SpellEffIndex | effIndex | ) |
Definition at line 1313 of file SpellEffectsCombat.cpp.
References effectHandleMode, getMSTime(), m_caster, m_spellInfo, SPELL_AURA_MOD_ROOT, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELLFAMILY_ROGUE, SPELLFAMILYFLAG0_ROGUE_VANISH, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectSchoolDMG | ( | SpellEffIndex | effIndex | ) |
Definition at line 138 of file SpellEffectsCombat.cpp.
References AddPct(), ApplyPct(), BASE_ATTACK, CalculatePct(), damage, effectHandleMode, Skyfire::Spells::GENERIC_SCHOOL_DAMAGE_ARCANE_CHARGE, Skyfire::Spells::GENERIC_SCHOOL_DAMAGE_CONSUMPTION, Skyfire::Spells::GENERIC_SCHOOL_DAMAGE_GARGOYLE_STRIKE, Skyfire::Spells::GENERIC_SCHOOL_DAMAGE_THUNDERCRASH, Skyfire::Spells::GetConsumptionDamage(), Skyfire::Spells::GetGargoyleStrikeDamageForLevel(), Skyfire::Spells::GetGenericSchoolDamageRule(), Skyfire::Spells::GetThundercrashMinimumDamage(), Skyfire::Spells::IsArcaneChargeAllowedCreatureType(), Skyfire::Spells::IsShockwaveDamageSpell(), Skyfire::Spells::IsVictoryRushDamageSpell(), m_caster, m_damage, m_originalCaster, m_spellInfo, m_UniqueTargetInfo, POWER_ENERGY, SPELL_ATTR0_CU_SHARE_DAMAGE, SPELL_AURA_PERIODIC_DAMAGE, SPELL_DIRECT_DAMAGE, SPELL_EFFECT_HANDLE_LAUNCH_TARGET, SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_DRUID, SPELLFAMILY_GENERIC, SPELLFAMILY_ROGUE, SPELLFAMILY_WARRIOR, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectScriptEffect | ( | SpellEffIndex | effIndex | ) |
Definition at line 149 of file SpellEffectsScript.cpp.
References Skyfire::Spells::ProtoTypicalShorteningBlasterSpells::CasterSpellId, CORPSE, damage, destTarget, DoCreateItem(), EFFECT_0, EFFECT_1, effectHandleMode, AuraEffect::GetBase(), Skyfire::Spells::GetBendingShinboneTriggerSpellId(), Skyfire::Spells::GetBigBlizzardBearMountSpellId(), Skyfire::Spells::GetBrewfestSampleSpellId(), Skyfire::Spells::GetBrutallusBurnRangeAuraSpellId(), AuraEffect::GetCasterGUID(), Skyfire::Spells::GetCreateHealthstoneTriggeredSpellId(), Skyfire::Spells::GetDeathboltDirectSpellId(), Skyfire::Spells::GetDeathboltReflectedSpellId(), Skyfire::Spells::GetDeathboltWardAuraSpellId(), Skyfire::Spells::GetDeathKnightInitiateVisualSpellId(), Skyfire::Spells::GetDecimateScriptTriggerSpellId(), Aura::GetDuration(), Aura::GetEffect(), Skyfire::Spells::GetEmblazonRunebladeTriggerSpellId(), Object::GetEntry(), Skyfire::Spells::GetGiftOfTheHarvesterFallbackSpellId(), Skyfire::Spells::GetGoblinWeatherMachineSpellId(), Skyfire::Spells::GetGoldScriptAmount(), Skyfire::Spells::GetGrabCrateParentSpellId(), Skyfire::Spells::GetJudgementFallbackSealTriggerSpellId(), Skyfire::Spells::GetJudgementSealTriggerSpellId(), Skyfire::Spells::GetLightwellChargesAuraSpellId(), Skyfire::Spells::GetLightwellHealSpellId(), Aura::GetMaxDuration(), SpellInfo::GetMaxDuration(), Skyfire::Spells::GetMirrensDrinkingHatItemId(), Skyfire::Spells::GetMugTransformationItemId(), Skyfire::Spells::GetPestilenceBloodPlagueSpellId(), Skyfire::Spells::GetPestilenceFrostFeverSpellId(), Skyfire::Spells::GetPlantWarmaulOgreBannerEventId(), Skyfire::Spells::GetProtoTypicalShorteningBlasterSpells(), Skyfire::Spells::GetScriptEffectStackRemovalAuraSpellId(), Skyfire::Spells::GetShadowFlameScriptRule(), Aura::GetSpellInfo(), AuraEffect::GetSpellInfo(), SpellInfo::GetSpellSpecific(), Skyfire::Spells::GetSummonGhoulsOnScarletCrusadeSpellId(), Skyfire::Spells::GetTeleportingScriptSpellId(), Unit::GetVehicleBase(), Skyfire::Spells::GetWintergraspRpggDropItemCount(), GOLD, Skyfire::Spells::IsScriptDespawnSpell(), itemTarget, m_caster, m_originalCaster, m_spellInfo, m_targets, Skyfire::Spells::ShadowFlameScriptRule::ProtectionAuraSpellId, QUEST_STATUS_COMPLETE, roll_chance_i(), Aura::SetDuration(), Aura::SetMaxDuration(), SF_LOG_DEBUG, SF_LOG_ERROR, SKILL_RIDING, SPELL_AURA_ADD_FLAT_MODIFIER, SPELL_AURA_DUMMY, SPELL_AURA_MOUNTED, SPELL_AURA_PERIODIC_DAMAGE, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_SPECIFIC_SEAL, SPELLCATEGORY_JUDGEMENT, SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_GENERIC, SPELLFAMILY_PALADIN, SPELLFAMILY_WARLOCK, SPELLFAMILY_WARRIOR, SpellInfo::SpellFamilyFlags, SpellInfo::SpellFamilyName, SPELLVALUE_BASE_POINT0, sSpellMgr, sSpellScripts, Skyfire::Spells::ProtoTypicalShorteningBlasterSpells::TargetSpellId, Skyfire::Spells::ShadowFlameScriptRule::TriggerSpellId, TYPEID_PLAYER, TYPEID_UNIT, and unitTarget.
| void Spell::EffectSelfResurrect | ( | SpellEffIndex | effIndex | ) |
Definition at line 122 of file SpellEffectsLifecycle.cpp.
References CalculatePct(), damage, EFFECT_0, EFFECT_1, effectHandleMode, Unit::GetMaxPower(), m_caster, m_spellInfo, POWER_ENERGY, POWER_FOCUS, POWER_MANA, POWER_RAGE, Player::ResurrectPlayer(), Unit::SetHealth(), Unit::SetPower(), Player::SpawnCorpseBones(), SPELL_ATTR8_COMBAT_RESURECTION_LIMIT, SPELL_EFFECT_HANDLE_HIT, and TYPEID_PLAYER.
| void Spell::EffectSendEvent | ( | SpellEffIndex | effIndex | ) |
Definition at line 299 of file SpellEffectsTrigger.cpp.
References effectHandleMode, focusObject, gameObjTarget, m_caster, m_spellInfo, sEventScripts, SF_LOG_DEBUG, SPELL_EFFECT_HANDLE_HIT, SPELL_EFFECT_HANDLE_HIT_TARGET, TARGET_FLAG_GAMEOBJECT_MASK, TARGET_FLAG_UNIT_MASK, and unitTarget.
| void Spell::EffectSendTaxi | ( | SpellEffIndex | effIndex | ) |
Definition at line 437 of file SpellEffectsMovement.cpp.
References effectHandleMode, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectSkill | ( | SpellEffIndex | effIndex | ) |
Definition at line 226 of file SpellEffectsProgression.cpp.
References effectHandleMode, SF_LOG_DEBUG, and SPELL_EFFECT_HANDLE_HIT.
| void Spell::EffectSkinning | ( | SpellEffIndex | effIndex | ) |
Definition at line 520 of file SpellEffectsItems.cpp.
References effectHandleMode, Creature::GetCreatureTemplate(), Object::GetGUID(), Unit::getLevel(), CreatureTemplate::GetRequiredLootSkill(), Creature::isElite(), LOOT_SKINNING, m_caster, Object::RemoveFlag(), SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, TYPEID_UNIT, UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE, and unitTarget.
| void Spell::EffectSkinPlayerCorpse | ( | SpellEffIndex | effIndex | ) |
Definition at line 205 of file SpellEffectsMisc.cpp.
References effectHandleMode, Unit::IsAlive(), m_caster, Player::RemovedInsignia(), SF_LOG_DEBUG, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectSpecCount | ( | SpellEffIndex | effIndex | ) |
Definition at line 239 of file SpellEffectsProgression.cpp.
References damage, effectHandleMode, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectSpiritHeal | ( | SpellEffIndex | effIndex | ) |
Definition at line 172 of file SpellEffectsLifecycle.cpp.
References effectHandleMode, and SPELL_EFFECT_HANDLE_HIT_TARGET.
| void Spell::EffectStealBeneficialBuff | ( | SpellEffIndex | effIndex | ) |
Definition at line 1446 of file SpellEffectsCombat.cpp.
References ByteBuffer::append(), SpellInfo::AttributesEx4, SpellInfo::AttributesEx7, damage, effectHandleMode, Aura::GetApplicationOfTarget(), Aura::GetCharges(), SpellInfo::GetDispelMask(), Aura::GetSpellInfo(), Aura::GetStackAmount(), Aura::IsPassive(), AuraApplication::IsPositive(), m_caster, m_spellInfo, roll_chance_i(), SF_LOG_DEBUG, SMSG_DISPEL_FAILED, SMSG_SPELLSTEALLOG, SPELL_ATTR4_NOT_STEALABLE, SPELL_ATTR7_DISPEL_CHARGES, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectStuck | ( | SpellEffIndex | effIndex | ) |
Definition at line 289 of file SpellEffectsMovement.cpp.
References CONFIG_CAST_UNSTUCK, effectHandleMode, Object::GetGUIDLow(), WorldLocation::GetMapId(), WorldObject::GetName(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Player::GetStartPosition(), Skyfire::Spells::GetStuckHearthstoneCooldownSpellId(), Unit::IsInFlight(), m_caster, SendSpellCooldown(), SF_LOG_DEBUG, SF_LOG_INFO, Spell(), SPELL_EFFECT_HANDLE_HIT, sSpellMgr, sWorld, TELE_TO_SPELL, Player::TeleportTo(), and TRIGGERED_FULL_MASK.
| void Spell::EffectSummonChangeItem | ( | SpellEffIndex | effIndex | ) |
Definition at line 81 of file SpellEffectsSummon.cpp.
References Player::AutoUnequipOffhandIfNeed(), Player::BankItem(), Player::CanBankItem(), Player::CanEquipItem(), Player::CanStoreItem(), Item::CreateItem(), Player::DestroyItem(), Player::DurabilityLoss(), effectHandleMode, EQUIP_ERR_CLIENT_LOCKED_OUT, EQUIP_ERR_OK, Player::EquipItem(), EQUIPMENT_SLOT_MAINHAND, Object::GetGUID(), Player::IsBankPos(), Player::IsEquipmentPos(), Player::IsInventoryPos(), ITEM_FIELD_DURABILITY, ITEM_FIELD_MAX_DURABILITY, m_caster, m_CastItem, m_spellInfo, m_targets, PERM_ENCHANTMENT_SLOT, Item::SetEnchantment(), SPELL_EFFECT_HANDLE_HIT, Player::StoreItem(), TEMP_ENCHANTMENT_SLOT, and TYPEID_PLAYER.
| void Spell::EffectSummonDeadPet | ( | SpellEffIndex | effIndex | ) |
Definition at line 744 of file SpellEffectsSummon.cpp.
References ALIVE, Unit::ClearUnitState(), Unit::CountPctFromMaxHealth(), Map::CreatureRelocation(), damage, effectHandleMode, WorldObject::GetMap(), Position::GetOrientation(), Player::GetPet(), Position::GetPosition(), Unit::IsAlive(), m_caster, OBJECT_FIELD_DYNAMIC_FLAGS, PET_SAVE_AS_CURRENT, Object::RemoveFlag(), Pet::SavePetToDB(), Pet::setDeathState(), Unit::SetHealth(), Object::SetUInt32Value(), SPELL_EFFECT_HANDLE_HIT, SUMMON_PET, Player::SummonPet(), UNIT_DYNFLAG_NONE, UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE, and UNIT_STATE_ALL_STATE.
| void Spell::EffectSummonObject | ( | SpellEffIndex | effIndex | ) |
Definition at line 689 of file SpellEffectsSummon.cpp.
References Map::AddToMap(), GameObject::Create(), DEFAULT_WORLD_OBJECT_SIZE, destTarget, effectHandleMode, ExecuteLogEffectSummonObject(), Object::GetGUID(), GO_STATE_READY, HIGHGUID_GAMEOBJECT, IN_MILLISECONDS, m_caster, m_spellInfo, m_targets, GameObject::SetPhased(), GameObject::SetRespawnTime(), GameObject::SetSpellId(), sObjectMgr, SPELL_EFFECT_HANDLE_HIT, and SPELL_EFFECT_SUMMON_OBJECT_SLOT1.
| void Spell::EffectSummonObjectWild | ( | SpellEffIndex | effIndex | ) |
Definition at line 526 of file SpellEffectsSummon.cpp.
References Map::AddToMap(), ALLIANCE, GameObject::Create(), DEFAULT_WORLD_OBJECT_SIZE, destTarget, effectHandleMode, ExecuteLogEffectSummonObject(), focusObject, GAMEOBJECT_TYPE_FLAGDROP, GameObject::GetGOInfo(), GameObject::GetGoType(), Object::GetGUID(), GameObjectTemplate::GetLinkedGameObjectEntry(), WorldObject::GetMap(), Position::GetOrientation(), GO_STATE_READY, HIGHGUID_GAMEOBJECT, IN_MILLISECONDS, m_caster, m_spellInfo, m_targets, GameObject::SetPhased(), GameObject::SetRespawnTime(), GameObject::SetSpellId(), sObjectMgr, SPELL_EFFECT_HANDLE_HIT, TEAM_ALLIANCE, and TEAM_HORDE.
| void Spell::EffectSummonPet | ( | SpellEffIndex | effIndex | ) |
Definition at line 418 of file SpellEffectsSummon.cpp.
References ASSERT, effectHandleMode, ExecuteLogEffectSummonObject(), WorldObject::GetClosePoint(), Object::GetEntry(), WorldObject::GetMap(), WorldObject::GetObjectSize(), Position::GetOrientation(), Player::GetPet(), Pet::getPetType(), Object::GetTypeId(), HUNTER_PET, Pet::isControlled(), Unit::isDead(), m_caster, m_originalCaster, m_spellInfo, Unit::NearTeleportTo(), PET_SAVE_AS_DELETED, PET_SAVE_NOT_IN_SLOT, Player::PetSpellInitialize(), REACT_AGGRESSIVE, REACT_DEFENSIVE, Player::RemovePet(), WorldObject::SetName(), Creature::SetReactState(), Object::SetUInt32Value(), sObjectMgr, SPELL_EFFECT_HANDLE_HIT, sSummonPropertiesStore, SUMMON_PET, SummonGuardian(), Player::SummonPet(), Object::ToPlayer(), TYPEID_PLAYER, TYPEID_UNIT, and UNIT_FIELD_CREATED_BY_SPELL.
| void Spell::EffectSummonPlayer | ( | SpellEffIndex | effIndex | ) |
Definition at line 597 of file SpellEffectsSummon.cpp.
References effectHandleMode, IN_MILLISECONDS, m_caster, MAX_PLAYER_SUMMON_DELAY, SMSG_SUMMON_REQUEST, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, unitTarget, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void Spell::EffectSummonRaFFriend | ( | SpellEffIndex | effIndex | ) |
Definition at line 1111 of file SpellEffectsSummon.cpp.
References effectHandleMode, m_caster, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectSummonType | ( | SpellEffIndex | effIndex | ) |
Definition at line 183 of file SpellEffectsSummon.cpp.
References SummonPropertiesEntry::Category, MotionMaster::Clear(), damage, destTarget, effectHandleMode, ExecuteLogEffectSummonObject(), SummonPropertiesEntry::Faction, SummonPropertiesEntry::Flags, BattlePetMgr::GetBattlePet(), Player::GetBattlePetMgr(), Creature::GetCreatureTemplate(), BattlePet::GetCurrentHealth(), BattlePetMgr::GetCurrentSummonId(), Unit::GetFollowAngle(), Object::GetGUID(), BattlePet::GetId(), BattlePet::GetLevel(), BattlePet::GetMaxHealth(), Unit::GetMotionMaster(), BattlePet::GetQuality(), Skyfire::Spells::GetSummonCountForProperty(), BattlePet::GetTimestamp(), Skyfire::Spells::GetTotemSummonHealthPct(), SpellInfo::HasAura(), Unit::HasUnitTypeMask(), SpellInfo::Id, SummonPropertiesEntry::Id, Unit::IsTotem(), Unit::IsVehicle(), m_caster, m_originalCaster, m_spellInfo, MOTION_SLOT_ACTIVE, MotionMaster::MoveFollow(), CreatureTemplate::npcflag, PET_FOLLOW_DIST, PLAYER_FIELD_CURRENT_BATTLE_PET_BREED_QUALITY, PLAYER_FIELD_SUMMONED_BATTLE_PET_GUID, Unit::SetCreateHealth(), Unit::SetCreatorGUID(), BattlePetMgr::SetCurrentSummon(), Unit::SetFacingToObject(), Unit::setFaction(), Object::SetFlag(), Unit::SetHealth(), Unit::SetMaxHealth(), Unit::SetOwnerGUID(), Object::SetUInt32Value(), Object::SetUInt64Value(), SF_LOG_ERROR, SPELL_AURA_CONTROL_VEHICLE, SPELL_EFFECT_HANDLE_HIT, SPELLMOD_DURATION, sSpellMgr, sSummonPropertiesStore, SUMMON_CATEGORY_ALLY, SUMMON_CATEGORY_PET, SUMMON_CATEGORY_PUPPET, SUMMON_CATEGORY_UNK, SUMMON_CATEGORY_VEHICLE, SUMMON_CATEGORY_WILD, SUMMON_TYPE_GUARDIAN, SUMMON_TYPE_GUARDIAN2, SUMMON_TYPE_LIGHTWELL, SUMMON_TYPE_MINION, SUMMON_TYPE_MINIPET, SUMMON_TYPE_PET, SUMMON_TYPE_STATUE, SUMMON_TYPE_TOTEM, SUMMON_TYPE_VEHICLE, SUMMON_TYPE_VEHICLE2, SummonGuardian(), TEMPSUMMON_DEAD_DESPAWN, TEMPSUMMON_TIMED_DESPAWN, SummonPropertiesEntry::Type, UNIT_FIELD_BATTLE_PET_COMPANION_GUID, UNIT_FIELD_BATTLE_PET_COMPANION_NAME_TIMESTAMP, UNIT_FIELD_CREATED_BY, UNIT_FIELD_CREATED_BY_SPELL, UNIT_FIELD_FLAGS, UNIT_FIELD_NPC_FLAGS, UNIT_FIELD_WILD_BATTLE_PET_LEVEL, UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_IMMUNE_TO_PC, UNIT_MASK_MINION, and VEHICLE_SPELL_RIDE_HARDCODED.
| void Spell::EffectTameCreature | ( | SpellEffIndex | effIndex | ) |
Definition at line 362 of file SpellEffectsSummon.cpp.
References Map::AddToMap(), CLASS_HUNTER, Creature::DespawnOrUnsummon(), effectHandleMode, finish(), Unit::getLevel(), WorldObject::GetMap(), Pet::InitTalentForLevel(), Unit::IsPet(), m_caster, m_spellInfo, PET_SAVE_AS_CURRENT, Pet::SavePetToDB(), Object::SetUInt32Value(), SPELL_EFFECT_HANDLE_HIT_TARGET, Object::ToCreature(), TYPEID_PLAYER, TYPEID_UNIT, UNIT_FIELD_LEVEL, and unitTarget.
| void Spell::EffectTaunt | ( | SpellEffIndex | effIndex | ) |
Definition at line 978 of file SpellEffectsCombat.cpp.
References effectHandleMode, m_caster, REACT_PASSIVE, SendCastResult(), SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_FAILED_DONT_REPORT, and unitTarget.
| void Spell::EffectTeleportUnits | ( | SpellEffIndex | effIndex | ) |
Definition at line 125 of file SpellEffectsMovement.cpp.
References destTarget, effectHandleMode, Skyfire::Spells::GetArea52RipperPostEffectSpellId(), Skyfire::Spells::GetEverlookRipperPostEffectSpellId(), Skyfire::Spells::GetTeleportPostEffect(), Skyfire::Spells::GetToshleysTransporterPostEffectSpellId(), m_caster, m_spellInfo, m_targets, MAPID_INVALID, roll_chance_i(), SF_LOG_DEBUG, SF_LOG_ERROR, SPELL_EFFECT_HANDLE_HIT_TARGET, TELE_TO_SPELL, Skyfire::Spells::TELEPORT_POST_EFFECT_AREA52_RIPPER, Skyfire::Spells::TELEPORT_POST_EFFECT_EVERLOOK_RIPPER, Skyfire::Spells::TELEPORT_POST_EFFECT_TOSHLEYS_TRANSPORTER, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectTeleUnitsFaceCaster | ( | SpellEffIndex | effIndex | ) |
Definition at line 270 of file SpellEffectsMovement.cpp.
References effectHandleMode, m_caster, m_spellInfo, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectThreat | ( | SpellEffIndex | effIndex | ) |
Definition at line 1245 of file SpellEffectsCombat.cpp.
References damage, effectHandleMode, m_caster, SPELL_EFFECT_HANDLE_HIT_TARGET, and unitTarget.
| void Spell::EffectTitanGrip | ( | SpellEffIndex | effIndex | ) |
Definition at line 1617 of file SpellEffectsCombat.cpp.
References effectHandleMode, m_caster, SPELL_EFFECT_HANDLE_HIT, and TYPEID_PLAYER.
| void Spell::EffectTradeSkill | ( | SpellEffIndex | effIndex | ) |
Definition at line 257 of file SpellEffectsItems.cpp.
References effectHandleMode, m_caster, SPELL_EFFECT_HANDLE_HIT, and TYPEID_PLAYER.
| void Spell::EffectTransmitted | ( | SpellEffIndex | effIndex | ) |
Definition at line 812 of file SpellEffectsSummon.cpp.
References Map::AddToMap(), GameObject::AddUniqueUse(), GameObject::Create(), DEFAULT_WORLD_OBJECT_SIZE, destTarget, effectHandleMode, ExecuteLogEffectSummonObject(), FISHING_BOBBER_READY_TIME, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_DUEL_ARBITER, GAMEOBJECT_TYPE_FISHINGHOLE, GAMEOBJECT_TYPE_FISHINGNODE, GAMEOBJECT_TYPE_SPELL_FOCUS, GAMEOBJECT_TYPE_SUMMONING_RITUAL, GameObject::GetGOInfo(), Object::GetGUID(), GameObjectTemplate::GetLinkedGameObjectEntry(), WorldObject::GetMap(), GO_STATE_READY, HIGHGUID_GAMEOBJECT, IN_MILLISECONDS, m_caster, m_originalCaster, m_spellInfo, m_targets, rand_norm(), GameObject::SetOwnerGUID(), GameObject::SetPhased(), GameObject::SetRespawnTime(), GameObject::SetSpellId(), SF_LOG_DEBUG, SF_LOG_ERROR, sObjectMgr, SPELL_EFFECT_HANDLE_HIT, GameObjectTemplate::type, TYPEID_PLAYER, and UNIT_FIELD_CHANNEL_OBJECT.
| void Spell::EffectTriggerMissileSpell | ( | SpellEffIndex | effIndex | ) |
Definition at line 189 of file SpellEffectsTrigger.cpp.
References CustomSpellValues::AddSpellMod(), SpellInfo::CategoryRecoveryTime, damage, effectHandleMode, SpellInfo::GetCategory(), SpellInfo::GetExplicitTargetMask(), SpellInfo::Id, m_caster, m_originalCasterGUID, m_spellInfo, m_targets, SpellInfo::NeedsToBeTriggeredByCaster(), SpellCastTargets::SetDst(), SpellCastTargets::SetUnitTarget(), SF_LOG_DEBUG, SPELL_EFFECT_HANDLE_HIT, SPELL_EFFECT_HANDLE_HIT_TARGET, SPELL_EFFECT_TRIGGER_MISSILE_SPELL_WITH_VALUE, SPELLVALUE_BASE_POINT0, SPELLVALUE_BASE_POINT1, SPELLVALUE_BASE_POINT2, sSpellMgr, TARGET_FLAG_DEST_LOCATION, TARGET_FLAG_UNIT_MASK, TRIGGERED_FULL_MASK, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectTriggerRitualOfSummoning | ( | SpellEffIndex | effIndex | ) |
Definition at line 62 of file SpellEffectsSummon.cpp.
References effectHandleMode, finish(), m_caster, m_spellInfo, SF_LOG_ERROR, SPELL_EFFECT_HANDLE_HIT, and sSpellMgr.
| void Spell::EffectTriggerSpell | ( | SpellEffIndex | effIndex | ) |
Definition at line 60 of file SpellEffectsTrigger.cpp.
References CustomSpellValues::AddSpellMod(), SpellInfo::CategoryRecoveryTime, damage, DISPEL_ALL, SpellInfo::DmgClass, effectHandleMode, SpellInfo::GetCategory(), SpellInfo::GetDispelMask(), SpellInfo::GetExplicitTargetMask(), Skyfire::Spells::GetTriggerSpellRule(), SpellInfo::Id, m_caster, m_originalCasterGUID, m_spellInfo, m_targets, SpellInfo::NeedsToBeTriggeredByCaster(), SpellCastTargets::SetDst(), SpellCastTargets::SetUnitTarget(), SF_LOG_DEBUG, SPELL_AURA_MOD_STALKED, SPELL_AURA_MOD_STUN, SPELL_DAMAGE_CLASS_MAGIC, SPELL_EFFECT_HANDLE_LAUNCH, SPELL_EFFECT_HANDLE_LAUNCH_TARGET, SPELL_EFFECT_TRIGGER_SPELL, SPELL_EFFECT_TRIGGER_SPELL_WITH_VALUE, SPELLVALUE_BASE_POINT0, SPELLVALUE_BASE_POINT1, SPELLVALUE_BASE_POINT2, sSpellMgr, SpellInfo::StackAmount, TARGET_FLAG_DEST_LOCATION, TARGET_FLAG_UNIT_MASK, Skyfire::Spells::TRIGGER_SPELL_RULE_CLOAK_OF_SHADOWS, Skyfire::Spells::TRIGGER_SPELL_RULE_DEMONIC_EMPOWERMENT_SUCCUBUS, Skyfire::Spells::TRIGGER_SPELL_RULE_STACK_TRIGGER, Skyfire::Spells::TRIGGER_SPELL_RULE_VANISH, TRIGGERED_FULL_MASK, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectUnlearnSpecialization | ( | SpellEffIndex | effIndex | ) |
Definition at line 60 of file SpellEffectsProgression.cpp.
References effectHandleMode, Object::GetGUIDLow(), m_caster, m_spellInfo, Player::removeSpell(), SF_LOG_DEBUG, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectUnlockGuildVaultTab | ( | SpellEffIndex | effIndex | ) |
Definition at line 699 of file SpellEffectsItems.cpp.
References effectHandleMode, Player::GetGuild(), Player::GetSession(), m_caster, m_spellInfo, and SPELL_EFFECT_HANDLE_HIT.
| void Spell::EffectUntrainTalents | ( | SpellEffIndex | effIndex | ) |
Definition at line 122 of file SpellEffectsProgression.cpp.
References effectHandleMode, m_caster, SPELL_EFFECT_HANDLE_HIT_TARGET, TYPEID_PLAYER, and unitTarget.
| void Spell::EffectUnused | ( | SpellEffIndex | effIndex | ) |
Definition at line 284 of file SpellEffects.cpp.
References Skyfire::Spells::ClassifySpellDispatchHandler(), Skyfire::Spells::GetSpellDispatchValidationStatusName(), m_spellInfo, SF_LOG_DEBUG, and Skyfire::Spells::SPELL_DISPATCH_HANDLER_UNUSED.
| void Spell::EffectWeaponDmg | ( | SpellEffIndex | effIndex | ) |
Definition at line 1013 of file SpellEffectsCombat.cpp.
References AddPct(), ApplyPct(), AURA_STATE_BLEEDING, BASE_ATTACK, CalculateDamage(), damage, EFFECT_0, EFFECT_1, EFFECT_2, effectHandleMode, ITEM_SUBCLASS_WEAPON_DAGGER, m_attackType, m_caster, m_damage, m_spellInfo, MAX_SPELL_EFFECTS, OFF_ATTACK, POWER_RUNIC_POWER, RANGED_ATTACK, SPELL_EFFECT_HANDLE_LAUNCH_TARGET, SPELL_EFFECT_NORMALIZED_WEAPON_DMG, SPELL_EFFECT_WEAPON_DAMAGE, SPELL_EFFECT_WEAPON_DAMAGE_NOSCHOOL, SPELL_EFFECT_WEAPON_PERCENT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, SPELLFAMILY_DEATHKNIGHT, SPELLFAMILY_DRUID, SPELLFAMILY_HUNTER, SPELLFAMILY_ROGUE, SPELLFAMILY_SHAMAN, SPELLFAMILY_WARRIOR, TOTAL_PCT, TYPEID_PLAYER, UNIT_MOD_DAMAGE_MAINHAND, UNIT_MOD_DAMAGE_OFFHAND, UNIT_MOD_DAMAGE_RANGED, and unitTarget.
Definition at line 4958 of file Spell.cpp.
References ASSERT, m_effectExecuteData, and MAX_SPELL_EFFECTS.
Referenced by EffectCreateItem().
Definition at line 4964 of file Spell.cpp.
References ASSERT, m_effectExecuteData, and MAX_SPELL_EFFECTS.
Referenced by EffectFeedPet().
| void Spell::ExecuteLogEffectDurabilityDamage | ( | uint8 | effIndex, |
| Unit * | victim, | ||
| int32 | itemId, | ||
| int32 | slot ) |
Definition at line 4946 of file Spell.cpp.
References ASSERT, and MAX_SPELL_EFFECTS.
Referenced by EffectDurabilityDamage().
Definition at line 4908 of file Spell.cpp.
References ASSERT, Object::GetGUID(), m_effectExecuteData, and MAX_SPELL_EFFECTS.
Referenced by EffectAddExtraAttacks().
Definition at line 4914 of file Spell.cpp.
References Object::GetGUID(), m_caster, m_spellInfo, SMSG_SPELLINTERRUPTLOG, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by EffectInterruptCast().
Definition at line 4952 of file Spell.cpp.
References ASSERT, Object::GetGUID(), m_effectExecuteData, and MAX_SPELL_EFFECTS.
Referenced by EffectOpenLock().
Definition at line 4982 of file Spell.cpp.
References ASSERT, Object::GetGUID(), m_effectExecuteData, and MAX_SPELL_EFFECTS.
Referenced by EffectResurrect(), EffectResurrectNew(), and EffectResurrectWithAura().
| void Spell::ExecuteLogEffectSummonObject | ( | uint8 | effIndex, |
| WorldObject * | obj ) |
Definition at line 4970 of file Spell.cpp.
References ASSERT, Object::GetGUID(), m_effectExecuteData, and MAX_SPELL_EFFECTS.
Referenced by EffectDuel(), EffectSummonObject(), EffectSummonObjectWild(), EffectSummonPet(), EffectSummonType(), EffectTransmitted(), and SummonGuardian().
| void Spell::ExecuteLogEffectTakeTargetPower | ( | uint8 | effIndex, |
| Unit * | target, | ||
| uint32 | powerType, | ||
| uint32 | powerTaken, | ||
| float | gainMultiplier ) |
Definition at line 4902 of file Spell.cpp.
References ASSERT, Object::GetGUID(), m_effectExecuteData, and MAX_SPELL_EFFECTS.
Referenced by EffectPowerBurn(), and EffectPowerDrain().
| void Spell::ExecuteLogEffectUnsummonObject | ( | uint8 | effIndex, |
| WorldObject * | obj ) |
Definition at line 4976 of file Spell.cpp.
References ASSERT, Object::GetGUID(), m_effectExecuteData, and MAX_SPELL_EFFECTS.
Referenced by EffectDismissPet().
| void Spell::finish | ( | bool | ok = true | ) |
Definition at line 3762 of file Spell.cpp.
References BASE_ATTACK, IsAutoActionResetSpell(), JUST_DIED, m_caster, m_spellInfo, m_spellState, m_triggeredByAuraSpell, OFF_ATTACK, RANGED_ATTACK, SF_LOG_DEBUG, SPELL_ATTR0_STOP_ATTACK_TARGET, SPELL_ATTR2_NOT_RESET_AUTO_ACTIONS, SPELL_AURA_IGNORE_MELEE_RESET, SPELL_STATE_FINISHED, SpellInfo::SpellIconID, sSpellMgr, TYPEID_PLAYER, TYPEID_UNIT, UNIT_FIELD_CREATED_BY_SPELL, UNIT_MASK_PUPPET, and UNIT_STATE_CASTING.
Referenced by cancel(), cast(), EffectInstaKill(), EffectTameCreature(), EffectTriggerRitualOfSummoning(), LuaSpell::Finish(), Unit::FinishSpell(), handle_delayed(), handle_immediate(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), prepare(), SelectImplicitAreaTargets(), SelectImplicitCasterDestTargets(), SelectSpellTargets(), and update().
|
protected |
Definition at line 7689 of file Spell.cpp.
References SendLogExecute().
Referenced by handle_delayed(), and handle_immediate().
|
inline |
Definition at line 563 of file Spell.h.
References m_caster.
Referenced by SpellInfo::CalcCastTime(), EffectBattlePetsUnlock(), EffectHealBattlePetPct(), EffectRemoveTalent(), LuaSpell::GetCaster(), and SelectImplicitChannelTargets().
|
inline |
Definition at line 542 of file Spell.h.
References m_casttime.
Referenced by LuaSpell::GetCastTime(), Unit::InterruptSpell(), and Unit::SetCurrentCastedSpell().
| CurrentSpellTypes Spell::GetCurrentContainer | ( | ) | const |
Definition at line 7251 of file Spell.cpp.
References CURRENT_AUTOREPEAT_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_GENERIC_SPELL, CURRENT_MELEE_SPELL, IsAutoRepeat(), IsNextMeleeSwingSpell(), and m_spellInfo.
Referenced by prepare(), and Unit::SetCurrentCastedSpell().
|
inline |
Definition at line 557 of file Spell.h.
References m_delayMoment.
|
inline |
Definition at line 555 of file Spell.h.
References m_delayStart.
|
inline |
Definition at line 564 of file Spell.h.
References m_originalCaster.
|
inline |
Definition at line 566 of file Spell.h.
References m_powerCost.
Referenced by LuaSpell::GetPowerCost().
|
inline |
Definition at line 567 of file Spell.h.
References m_powerType.
| uint32 Spell::GetSearcherTypeMask | ( | SpellTargetObjectTypes | objType, |
| ConditionList * | condList ) const |
Definition at line 1853 of file Spell.cpp.
References GRID_MAP_TYPE_MASK_ALL, GRID_MAP_TYPE_MASK_CORPSE, GRID_MAP_TYPE_MASK_CREATURE, GRID_MAP_TYPE_MASK_GAMEOBJECT, GRID_MAP_TYPE_MASK_PLAYER, m_spellInfo, sConditionMgr, SPELL_ATTR2_CAN_TARGET_DEAD, SPELL_ATTR3_ONLY_TARGET_GHOSTS, SPELL_ATTR3_ONLY_TARGET_PLAYERS, TARGET_OBJECT_TYPE_CORPSE, TARGET_OBJECT_TYPE_CORPSE_ALLY, TARGET_OBJECT_TYPE_CORPSE_ENEMY, TARGET_OBJECT_TYPE_GOBJ, TARGET_OBJECT_TYPE_GOBJ_ITEM, TARGET_OBJECT_TYPE_UNIT, and TARGET_OBJECT_TYPE_UNIT_AND_DEST.
Referenced by SearchAreaTargets(), SearchNearbyTarget(), and SelectImplicitConeTargets().
|
inline |
Definition at line 565 of file Spell.h.
References m_spellInfo.
Referenced by _handle_finish_phase(), cast(), CheckCast(), spell_monk_crackling_jade_lightning_aura::spell_monk_crackling_jade_lightning_aura_AuraScript::CheckProc(), EffectDuel(), EffectGameObjectDamage(), EffectPlayMovie(), EffectResurrectWithAura(), Creature::FocusTarget(), LuaSpell::GetDuration(), Creature::ReleaseFocus(), SelectEffectImplicitTargets(), Unit::SetCurrentCastedSpell(), and Player::SolveResearchProject().
|
inline |
Definition at line 494 of file Spell.h.
References m_spellState.
Referenced by DelayedChannel(), DoAllEffectOnTarget(), Unit::InterruptSpell(), and Player::SetSpellModTakingSpell().
Definition at line 3517 of file Spell.cpp.
References _handle_finish_phase(), _handle_immediate_phase(), DoAllEffectOnTarget(), finish(), FinishTargetProcessing(), m_caster, m_immediateHandled, m_targets, m_UniqueGOTargetInfo, m_UniqueTargetInfo, PrepareTargetProcessing(), TYPEID_PLAYER, and UpdatePointers().
| void Spell::handle_immediate | ( | ) |
Definition at line 3462 of file Spell.cpp.
References _handle_finish_phase(), _handle_immediate_phase(), DoAllEffectOnTarget(), finish(), FinishTargetProcessing(), m_caster, m_spellInfo, m_spellState, m_UniqueGOTargetInfo, m_UniqueTargetInfo, PrepareTargetProcessing(), SendChannelStart(), SPELL_ATTR5_HASTE_AFFECT_DURATION, SPELL_STATE_CASTING, SPELLMOD_DURATION, and TakeCastItem().
Referenced by cast().
| void Spell::HandleEffects | ( | Unit * | pUnitTarget, |
| Item * | pItemTarget, | ||
| GameObject * | pGOTarget, | ||
| uint32 | i, | ||
| SpellEffectHandleMode | mode ) |
Definition at line 5517 of file Spell.cpp.
References CalculateDamage(), CallScriptEffectHandlers(), damage, destTarget, effectHandleMode, gameObjTarget, itemTarget, m_destTargets, m_spellInfo, SF_LOG_DEBUG, TOTAL_SPELL_EFFECTS, and unitTarget.
Referenced by _handle_immediate_phase(), DoAllEffectOnLaunchTarget(), DoAllEffectOnTarget(), DoAllEffectOnTarget(), DoAllEffectOnTarget(), DoSpellHitOnUnit(), and HandleLaunchPhase().
| void Spell::HandleHolyPower | ( | Player * | caster | ) |
Definition at line 5482 of file Spell.cpp.
References Player::ApplySpellMod(), Unit::GetPower(), Unit::GetSpellModOwner(), m_caster, m_powerCost, m_spellInfo, m_targets, m_UniqueTargetInfo, POWER_HOLY_POWER, SPELL_MISS_MISS, SPELL_MISS_NONE, and SPELLMOD_COST.
Referenced by _handle_finish_phase().
|
protected |
Definition at line 7491 of file Spell.cpp.
References DoAllEffectOnLaunchTarget(), Spell::TargetInfo::effectMask, HandleEffects(), IsTriggered(), m_applyMultiplierMask, m_originalCaster, m_spellInfo, m_UniqueTargetInfo, MAX_SPELL_EFFECTS, SPELL_ATTR0_CU_DIRECT_DAMAGE, SPELL_EFFECT_HANDLE_LAUNCH, SPELL_EFFECT_NORMALIZED_WEAPON_DMG, SPELL_EFFECT_SCHOOL_DAMAGE, SPELL_EFFECT_WEAPON_DAMAGE, SPELL_EFFECT_WEAPON_DAMAGE_NOSCHOOL, SPELL_EFFECT_WEAPON_PERCENT_DAMAGE, and SPELLFAMILY_HUNTER.
Referenced by cast().
| void Spell::HandleThreatSpells | ( | ) |
Definition at line 5431 of file Spell.cpp.
References Unit::AddThreat(), BASE_ATTACK, Unit::CanHaveThreatList(), Unit::getHostileRefManager(), ObjectAccessor::GetUnit(), m_caster, m_spellInfo, m_UniqueTargetInfo, SF_LOG_DEBUG, SPELL_ATTR0_CU_NO_INITIAL_THREAT, SPELL_ATTR1_NO_THREAT, SPELL_ATTR3_NO_INITIAL_AGGRO, SPELL_MISS_NONE, sSpellMgr, and HostileRefManager::threatAssist().
Referenced by _handle_immediate_phase().
|
protected |
Definition at line 7968 of file Spell.cpp.
References m_caster, m_spellInfo, and TYPEID_PLAYER.
Referenced by CheckCast().
| bool Spell::HaveTargetsForEffect | ( | uint8 | effect | ) | const |
Definition at line 7344 of file Spell.cpp.
References m_UniqueGOTargetInfo, m_UniqueItemInfo, and m_UniqueTargetInfo.
| void Spell::InitExplicitTargets | ( | SpellCastTargets const & | targets | ) |
Definition at line 632 of file Spell.cpp.
References SpellCastTargets::GetObjectTarget(), ObjectAccessor::GetUnit(), SpellCastTargets::HasSrc(), m_caster, m_spellInfo, m_targets, SPELL_CAST_OK, TARGET_FLAG_CORPSE_MASK, TARGET_FLAG_DEST_LOCATION, TARGET_FLAG_GAMEOBJECT_MASK, TARGET_FLAG_SOURCE_LOCATION, TARGET_FLAG_UNIT, TARGET_FLAG_UNIT_ALLY, TARGET_FLAG_UNIT_ENEMY, TARGET_FLAG_UNIT_MASK, TARGET_FLAG_UNIT_PARTY, TARGET_FLAG_UNIT_RAID, and TYPEID_UNIT.
Referenced by prepare().
| bool Spell::IsAutoActionResetSpell | ( | ) | const |
Definition at line 7332 of file Spell.cpp.
References IsTriggered(), m_spellInfo, and SPELL_INTERRUPT_FLAG_INTERRUPT.
Referenced by finish().
|
inline |
Definition at line 543 of file Spell.h.
References m_autoRepeat.
Referenced by CheckCast(), GetCurrentContainer(), LuaSpell::IsAutoRepeat(), prepare(), and update().
|
inline |
Definition at line 548 of file Spell.h.
References m_caster, and UNIT_FIELD_CHANNEL_SPELL.
|
inlineprotected |
Definition at line 604 of file Spell.h.
References m_delayAtDamageCount.
Referenced by Delayed(), and DelayedChannel().
|
inline |
Definition at line 551 of file Spell.h.
References m_executedCurrently, and m_referencedFromCurrentSpell.
|
inline |
Definition at line 553 of file Spell.h.
References m_executedCurrently.
Referenced by Unit::InterruptSpell().
| bool Spell::IsNeedSendToClient | ( | ) | const |
Definition at line 7338 of file Spell.cpp.
References IsTriggered(), m_spellInfo, m_triggeredByAuraSpell, and SPELL_ATTR8_AURA_SEND_AMOUNT.
Referenced by SendSpellGo(), and SendSpellStart().
| bool Spell::IsNextMeleeSwingSpell | ( | ) | const |
Definition at line 7327 of file Spell.cpp.
References m_spellInfo, and SPELL_ATTR0_ON_NEXT_SWING.
Referenced by GetCurrentContainer(), and update().
|
inline |
Definition at line 547 of file Spell.h.
References _triggeredCastFlags, and TRIGGERED_FULL_MASK.
Referenced by CheckCast(), CheckEffectTarget(), CheckItems(), HandleLaunchPhase(), IsAutoActionResetSpell(), IsNeedSendToClient(), SendSpellGo(), SendSpellStart(), and update().
|
protected |
Definition at line 7482 of file Spell.cpp.
References Unit::IsAlive(), and m_spellInfo.
Referenced by UpdateChanneledTargetList().
|
protected |
Definition at line 7699 of file Spell.cpp.
References m_loadedScripts, m_spellInfo, SF_LOG_DEBUG, and sScriptMgr.
Referenced by prepare().
| void Spell::prepare | ( | SpellCastTargets const * | targets, |
| AuraEffect const * | triggeredByAura = NULL ) |
@todoApply this to all casted spells if needed
Definition at line 2939 of file Spell.cpp.
References _triggeredCastFlags, AURA_INTERRUPT_FLAG_CAST, AURA_INTERRUPT_FLAG_SPELL_ATTACK, CalculatePct(), Skyfire::Spells::CalculateSpellPowerCosts(), cast(), SpellPowerEntry::ChannelCostPercentageFloat, CHEAT_CASTTIME, CheckCast(), CURRENT_GENERIC_SPELL, DISABLE_TYPE_SPELL, finish(), AuraEffect::GetBase(), GetCurrentContainer(), AuraEffect::GetSpellInfo(), InitExplicitTargets(), IsAutoRepeat(), DisableMgr::IsDisabledFor(), Aura::IsPassive(), AuraEffect::IsPeriodic(), LoadScripts(), m_auraScaleMask, m_cast_count, m_caster, m_CastItem, m_castItemGUID, m_casttime, m_needComboPoints, m_originalCaster, m_periodicPowerCost, m_powerCost, m_powerType, m_spellInfo, m_spellState, m_spellValue, m_targets, m_triggeredByAuraSpell, SpellPowerEntry::manaCost, SpellPowerEntry::ManaCostPercentageFloat, SpellPowerEntry::manaPerSecond, MAX_POWERS, MAX_SPELL_EFFECTS, Skyfire::Spells::SpellPowerCostCalculationResult::PeriodicPowerCost, POWER_DEMONIC_FURY, POWER_HEALTH, POWER_MANA, Skyfire::Spells::SpellPowerCostCalculationResult::PowerCost, SpellPowerEntry::powerType, prepareDataForTriggerSystem(), GtNPCManaCostScalerEntry::ratio, ReSetTimer(), SendCastResult(), SendChannelUpdate(), SendSpellStart(), Aura::SetDuration(), SF_LOG_DEBUG, SF_LOG_ERROR, sGtNPCManaCostScalerStore, SpellPowerEntry::ShapeShiftSpellID, SPELL_ATTR0_LEVEL_DAMAGE_CALCULATION, SPELL_ATTR1_DRAIN_ALL_POWER, SPELL_AURA_CAST_WHILE_WALKING, SPELL_AURA_MOD_POWER_COST_SCHOOL, SPELL_AURA_MOD_POWER_COST_SCHOOL_PCT, SPELL_CAST_OK, SPELL_EFFECT_APPLY_AURA, SPELL_FAILED_BAD_TARGETS, SPELL_FAILED_MOVING, SPELL_FAILED_SPELL_IN_PROGRESS, SPELL_FAILED_SPELL_UNAVAILABLE, SPELL_INTERRUPT_FLAG_MOVEMENT, Skyfire::Spells::SPELL_POWER_COST_UNKNOWN_POWER_TYPE, Skyfire::Spells::SPELL_POWER_COST_UNSUPPORTED_POWER_TYPE, SPELL_STATE_PREPARING, SpellPowerEntry::spellId, SPELLMOD_COST, sSpellPowerStore, Skyfire::Spells::SpellPowerCostCalculationResult::Status, TARGET_OBJECT_TYPE_UNIT, TRIGGERED_CAST_DIRECTLY, TRIGGERED_IGNORE_AURA_INTERRUPT_FLAGS, TRIGGERED_IGNORE_AURA_SCALING, TRIGGERED_IGNORE_CAST_IN_PROGRESS, TRIGGERED_IGNORE_COMBO_POINTS, TRIGGERED_IGNORE_GCD, TRIGGERED_IGNORE_SET_FACING, TRIGGERED_IGNORE_TARGET_CHECK, TriggerGlobalCooldown(), TYPEID_PLAYER, and TYPEID_UNIT.
Referenced by Unit::_UpdateAutoRepeatSpell(), Player::CastItemUseSpell(), Unit::CastSpell(), EffectDummy(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandleCastSpellOpcode(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), and PetAI::UpdateAI().
|
protected |
Definition at line 2048 of file Spell.cpp.
References _triggeredCastFlags, ITEM_CLASS_WEAPON, ITEM_SUBCLASS_WEAPON_WAND, m_attackType, m_caster, m_originalCaster, m_procAttacker, m_procEx, m_procVictim, m_spellInfo, OFF_ATTACK, PROC_EX_INTERNAL_CANT_PROC, PROC_EX_INTERNAL_REQ_FAMILY, PROC_EX_INTERNAL_TRIGGERED, PROC_EX_NONE, PROC_FLAG_DONE_MAINHAND_ATTACK, PROC_FLAG_DONE_OFFHAND_ATTACK, PROC_FLAG_DONE_PERIODIC, PROC_FLAG_DONE_RANGED_AUTO_ATTACK, PROC_FLAG_DONE_SPELL_MELEE_DMG_CLASS, PROC_FLAG_DONE_SPELL_RANGED_DMG_CLASS, PROC_FLAG_DONE_TRAP_ACTIVATION, PROC_FLAG_TAKEN_PERIODIC, PROC_FLAG_TAKEN_RANGED_AUTO_ATTACK, PROC_FLAG_TAKEN_SPELL_MELEE_DMG_CLASS, PROC_FLAG_TAKEN_SPELL_RANGED_DMG_CLASS, SPELL_ATTR2_AUTOREPEAT_FLAG, SPELL_ATTR2_TRIGGERED_CAN_TRIGGER_PROC, SPELL_ATTR3_TRIGGERED_CAN_TRIGGER_PROC_2, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_RANGED, SPELLFAMILY_HUNTER, SPELLFAMILY_WARLOCK, TRIGGERED_DISALLOW_PROC_EVENTS, and TYPEID_UNIT.
Referenced by prepare().
|
protected |
Definition at line 7776 of file Spell.cpp.
References m_loadedScripts.
Referenced by _handle_immediate_phase(), cast(), DoAllEffectOnTarget(), DoAllEffectOnTarget(), and DoSpellHitOnUnit().
|
protected |
Definition at line 7684 of file Spell.cpp.
References CheckEffectExecuteData().
Referenced by handle_delayed(), and handle_immediate().
|
protected |
Definition at line 7932 of file Spell.cpp.
References Spell::HitTriggerSpell::chance, SpellInfo::Effects, m_caster, m_hitTriggerSpells, m_spellInfo, SPELL_AURA_ADD_TARGET_TRIGGER, sSpellMgr, Spell::HitTriggerSpell::triggeredByAura, Spell::HitTriggerSpell::triggeredSpell, and SpellEffectInfo::TriggerSpell.
Referenced by cast().
|
inline |
Definition at line 545 of file Spell.h.
References m_casttime, and m_timer.
Referenced by prepare().
| void Spell::SearchAreaTargets | ( | std::list< WorldObject * > & | targets, |
| float | range, | ||
| Position const * | position, | ||
| Unit * | referer, | ||
| SpellTargetObjectTypes | objectType, | ||
| SpellTargetCheckTypes | selectionType, | ||
| ConditionList * | condList ) |
Definition at line 1933 of file Spell.cpp.
References GetSearcherTypeMask(), m_caster, m_spellInfo, and SearchTargets().
Referenced by SearchChainTargets(), and SelectImplicitAreaTargets().
| void Spell::SearchChainTargets | ( | std::list< WorldObject * > & | targets, |
| uint32 | chainTargets, | ||
| WorldObject * | target, | ||
| SpellTargetObjectTypes | objectType, | ||
| SpellTargetCheckTypes | selectType, | ||
| ConditionList * | condList, | ||
| bool | isChainHeal ) |
Definition at line 1943 of file Spell.cpp.
References WorldObject::GetDistanceOrder(), WorldObject::IsWithinDist(), WorldObject::IsWithinLOSInMap(), m_caster, M_PI, m_spellInfo, SearchAreaTargets(), SPELL_ATTR4_AREA_TARGET_CHAIN, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_NONE, SPELL_DAMAGE_CLASS_RANGED, and unitTarget.
Referenced by SelectImplicitChainTargets().
| WorldObject * Spell::SearchNearbyTarget | ( | float | range, |
| SpellTargetObjectTypes | objectType, | ||
| SpellTargetCheckTypes | selectionType, | ||
| ConditionList * | condList = NULL ) |
Definition at line 1921 of file Spell.cpp.
References GetSearcherTypeMask(), m_caster, m_spellInfo, and SearchTargets().
Referenced by SelectImplicitNearbyTargets().
| GameObject * Spell::SearchSpellFocus | ( | ) |
Definition at line 2039 of file Spell.cpp.
References GRID_MAP_TYPE_MASK_GAMEOBJECT, m_caster, m_spellInfo, and SearchTargets().
Referenced by CheckCast().
| void Spell::SearchTargets | ( | SEARCHER & | searcher, |
| uint32 | containerMask, | ||
| Unit * | referer, | ||
| Position const * | pos, | ||
| float | radius ) |
Definition at line 1888 of file Spell.cpp.
References Skyfire::ComputeCellCoord(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), GRID_MAP_TYPE_MASK_CORPSE, GRID_MAP_TYPE_MASK_CREATURE, GRID_MAP_TYPE_MASK_GAMEOBJECT, GRID_MAP_TYPE_MASK_PLAYER, Cell::SetNoCreate(), and Cell::Visit().
Referenced by SearchAreaTargets(), SearchNearbyTarget(), SearchSpellFocus(), SelectImplicitConeTargets(), and SelectImplicitTrajTargets().
| void Spell::SelectEffectImplicitTargets | ( | SpellEffIndex | effIndex, |
| SpellImplicitTargetInfo const & | targetType, | ||
| uint32 & | processedEffectMask ) |
Definition at line 819 of file Spell.cpp.
References ASSERT, SpellEffectInfo::CalcRadius(), CheckScriptEffectImplicitTargets(), SpellInfo::Effects, SpellImplicitTargetInfo::GetObjectType(), SpellImplicitTargetInfo::GetReferenceType(), SpellImplicitTargetInfo::GetSelectionCategory(), GetSpellInfo(), SpellImplicitTargetInfo::GetTarget(), SpellEffectInfo::ImplicitTargetConditions, m_caster, m_spellInfo, m_targets, MAX_SPELL_EFFECTS, SelectImplicitAreaTargets(), SelectImplicitCasterDestTargets(), SelectImplicitCasterObjectTargets(), SelectImplicitChannelTargets(), SelectImplicitConeTargets(), SelectImplicitDestDestTargets(), SelectImplicitNearbyTargets(), SelectImplicitTargetDestTargets(), SelectImplicitTargetObjectTargets(), SF_LOG_DEBUG, TARGET_OBJECT_TYPE_DEST, TARGET_OBJECT_TYPE_SRC, TARGET_REFERENCE_TYPE_CASTER, TARGET_REFERENCE_TYPE_DEST, TARGET_REFERENCE_TYPE_TARGET, TARGET_SELECT_CATEGORY_AREA, TARGET_SELECT_CATEGORY_CHANNEL, TARGET_SELECT_CATEGORY_CONE, TARGET_SELECT_CATEGORY_DEFAULT, TARGET_SELECT_CATEGORY_NEARBY, TARGET_SELECT_CATEGORY_NYI, SpellEffectInfo::TargetA, and SpellEffectInfo::TargetB.
Referenced by SelectSpellTargets().
| void Spell::SelectEffectTypeImplicitTargets | ( | uint8 | effIndex | ) |
Definition at line 1770 of file Spell.cpp.
References AddGOTarget(), AddItemTarget(), AddUnitTarget(), CallScriptObjectTargetSelectHandlers(), EFFECT_IMPLICIT_TARGET_CASTER, EFFECT_IMPLICIT_TARGET_EXPLICIT, ObjectAccessor::FindPlayer(), itemTarget, m_caster, m_spellInfo, m_targets, SPELL_EFFECT_SUMMON_PLAYER, SPELL_EFFECT_SUMMON_RAF_FRIEND, TARGET_FLAG_CORPSE_MASK, TARGET_FLAG_GAMEOBJECT_MASK, TARGET_FLAG_ITEM_MASK, TARGET_FLAG_UNIT_MASK, Object::ToGameObject(), Object::ToPlayer(), Object::ToUnit(), TYPEID_PLAYER, and unitTarget.
Referenced by SelectSpellTargets().
| void Spell::SelectExplicitTargets | ( | ) |
Definition at line 701 of file Spell.cpp.
References m_caster, m_spellInfo, m_targets, SPELL_DAMAGE_CLASS_MAGIC, SPELL_DAMAGE_CLASS_MELEE, SPELL_DAMAGE_CLASS_RANGED, TARGET_FLAG_UNIT, and TARGET_FLAG_UNIT_ENEMY.
Referenced by SelectSpellTargets().
| void Spell::SelectImplicitAreaTargets | ( | SpellEffIndex | effIndex, |
| SpellImplicitTargetInfo const & | targetType, | ||
| uint32 | effMask ) |
Definition at line 1111 of file Spell.cpp.
References AddGOTarget(), AddUnitTarget(), ASSERT, CallScriptObjectAreaTargetSelectHandlers(), CleanupTargetList(), CREATURE_TYPE_HUMANOID, finish(), SpellImplicitTargetInfo::GetCheckType(), SpellImplicitTargetInfo::GetObjectType(), SpellImplicitTargetInfo::GetReferenceType(), ObjectAccessor::GetUnit(), m_caster, m_spellInfo, m_spellValue, m_targets, m_UniqueTargetInfo, POWER_HEALTH, POWER_MANA, Skyfire::Containers::RandomResizeList(), SearchAreaTargets(), SendCastResult(), SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW, SPELLFAMILY_DRUID, SPELLFAMILY_GENERIC, SPELLFAMILY_PRIEST, TARGET_REFERENCE_TYPE_CASTER, TARGET_REFERENCE_TYPE_DEST, TARGET_REFERENCE_TYPE_LAST, TARGET_REFERENCE_TYPE_SRC, TARGET_REFERENCE_TYPE_TARGET, Object::ToGameObject(), TYPEID_CORPSE, TYPEID_PLAYER, TYPEID_UNIT, and unitTarget.
Referenced by SelectEffectImplicitTargets().
| void Spell::SelectImplicitCasterDestTargets | ( | SpellEffIndex | effIndex, |
| SpellImplicitTargetInfo const & | targetType ) |
Definition at line 1378 of file Spell.cpp.
References SpellImplicitTargetInfo::CalcDirectionAngle(), DEFAULT_WORLD_OBJECT_SIZE, finish(), SpellImplicitTargetInfo::GetTarget(), m_caster, M_PI, m_spellInfo, m_targets, PET_FOLLOW_DIST, rand_norm(), SendCastResult(), SendChannelUpdate(), SF_LOG_DEBUG, SPELL_EFFECT_BIND, SPELL_EFFECT_TELEPORT_UNITS, SPELL_FAILED_NOT_HERE, SPELL_FAILED_TOO_SHALLOW, sSpellMgr, TARGET_DEST_CASTER, TARGET_DEST_CASTER_FISHING, TARGET_DEST_CASTER_FRONT_LEAP, TARGET_DEST_CASTER_RANDOM, TARGET_DEST_CASTER_SUMMON, TARGET_DEST_DB, and TARGET_DEST_HOME.
Referenced by SelectEffectImplicitTargets().
| void Spell::SelectImplicitCasterObjectTargets | ( | SpellEffIndex | effIndex, |
| SpellImplicitTargetInfo const & | targetType ) |
Definition at line 1521 of file Spell.cpp.
References AddUnitTarget(), CallScriptObjectTargetSelectHandlers(), SpellImplicitTargetInfo::GetTarget(), m_caster, TARGET_UNIT_CASTER, TARGET_UNIT_MASTER, TARGET_UNIT_PASSENGER_0, TARGET_UNIT_PASSENGER_1, TARGET_UNIT_PASSENGER_2, TARGET_UNIT_PASSENGER_3, TARGET_UNIT_PASSENGER_4, TARGET_UNIT_PASSENGER_5, TARGET_UNIT_PASSENGER_6, TARGET_UNIT_PASSENGER_7, TARGET_UNIT_PET, TARGET_UNIT_SUMMONER, TARGET_UNIT_VEHICLE, Object::ToUnit(), and TYPEID_UNIT.
Referenced by SelectEffectImplicitTargets().
| void Spell::SelectImplicitChainTargets | ( | SpellEffIndex | effIndex, |
| SpellImplicitTargetInfo const & | targetType, | ||
| WorldObject * | target, | ||
| uint32 | effMask ) |
Definition at line 1588 of file Spell.cpp.
References AddUnitTarget(), CallScriptObjectAreaTargetSelectHandlers(), SpellImplicitTargetInfo::GetCheckType(), SpellImplicitTargetInfo::GetObjectType(), SpellImplicitTargetInfo::GetTarget(), m_applyMultiplierMask, m_caster, m_damageMultipliers, m_spellInfo, MAX_SPELL_EFFECTS, SearchChainTargets(), SPELLMOD_JUMP_TARGETS, TARGET_UNIT_TARGET_CHAINHEAL_ALLY, and unitTarget.
Referenced by SelectImplicitNearbyTargets(), and SelectImplicitTargetObjectTargets().
| void Spell::SelectImplicitChannelTargets | ( | SpellEffIndex | effIndex, |
| SpellImplicitTargetInfo const & | targetType ) |
Definition at line 925 of file Spell.cpp.
References AddUnitTarget(), ASSERT, CallScriptObjectTargetSelectHandlers(), CURRENT_CHANNELED_SPELL, GetCaster(), SpellImplicitTargetInfo::GetReferenceType(), SpellImplicitTargetInfo::GetTarget(), ObjectAccessor::GetUnit(), ObjectAccessor::GetWorldObject(), SpellCastTargets::HasDst(), m_caster, m_originalCaster, m_spellInfo, m_targets, SF_LOG_DEBUG, Spell(), TARGET_DEST_CHANNEL_CASTER, TARGET_DEST_CHANNEL_TARGET, TARGET_REFERENCE_TYPE_CASTER, TARGET_UNIT_CHANNEL_TARGET, Object::ToUnit(), and UNIT_FIELD_CHANNEL_OBJECT.
Referenced by SelectEffectImplicitTargets().
| void Spell::SelectImplicitConeTargets | ( | SpellEffIndex | effIndex, |
| SpellImplicitTargetInfo const & | targetType, | ||
| uint32 | effMask ) |
Definition at line 1061 of file Spell.cpp.
References AddGOTarget(), AddUnitTarget(), ASSERT, CallScriptObjectAreaTargetSelectHandlers(), SpellImplicitTargetInfo::GetCheckType(), SpellImplicitTargetInfo::GetObjectType(), SpellImplicitTargetInfo::GetReferenceType(), GetSearcherTypeMask(), m_caster, M_PI, m_spellInfo, m_spellValue, Skyfire::Containers::RandomResizeList(), SearchTargets(), TARGET_REFERENCE_TYPE_CASTER, Object::ToGameObject(), and unitTarget.
Referenced by SelectEffectImplicitTargets().
| void Spell::SelectImplicitDestDestTargets | ( | SpellEffIndex | effIndex, |
| SpellImplicitTargetInfo const & | targetType ) |
Definition at line 1488 of file Spell.cpp.
References SpellImplicitTargetInfo::CalcDirectionAngle(), SpellImplicitTargetInfo::GetTarget(), m_caster, m_spellInfo, m_targets, rand_norm(), SelectImplicitTrajTargets(), TARGET_DEST_DEST, TARGET_DEST_DEST_RANDOM, TARGET_DEST_DYNOBJ_ALLY, TARGET_DEST_DYNOBJ_ENEMY, TARGET_DEST_DYNOBJ_NONE, and TARGET_DEST_TRAJ.
Referenced by SelectEffectImplicitTargets().
| void Spell::SelectImplicitNearbyTargets | ( | SpellEffIndex | effIndex, |
| SpellImplicitTargetInfo const & | targetType, | ||
| uint32 | effMask ) |
Definition at line 973 of file Spell.cpp.
References AddGOTarget(), AddUnitTarget(), ASSERT, CallScriptObjectTargetSelectHandlers(), focusObject, SpellImplicitTargetInfo::GetCheckType(), SpellImplicitTargetInfo::GetObjectType(), SpellImplicitTargetInfo::GetReferenceType(), m_caster, m_spellInfo, m_targets, SearchNearbyTarget(), SelectImplicitChainTargets(), SF_LOG_DEBUG, TARGET_CHECK_ALLY, TARGET_CHECK_DEFAULT, TARGET_CHECK_ENEMY, TARGET_CHECK_ENTRY, TARGET_CHECK_PARTY, TARGET_CHECK_RAID, TARGET_CHECK_RAID_CLASS, TARGET_OBJECT_TYPE_DEST, TARGET_OBJECT_TYPE_GOBJ, TARGET_OBJECT_TYPE_UNIT, TARGET_REFERENCE_TYPE_CASTER, Object::ToGameObject(), Object::ToUnit(), and unitTarget.
Referenced by SelectEffectImplicitTargets().
| void Spell::SelectImplicitTargetDestTargets | ( | SpellEffIndex | effIndex, |
| SpellImplicitTargetInfo const & | targetType ) |
Definition at line 1461 of file Spell.cpp.
References SpellImplicitTargetInfo::CalcDirectionAngle(), WorldObject::GetNearPosition(), WorldObject::GetObjectSize(), SpellImplicitTargetInfo::GetTarget(), m_caster, m_spellInfo, m_targets, rand_norm(), TARGET_DEST_TARGET_ANY, TARGET_DEST_TARGET_ENEMY, and TARGET_DEST_TARGET_RANDOM.
Referenced by SelectEffectImplicitTargets().
| void Spell::SelectImplicitTargetObjectTargets | ( | SpellEffIndex | effIndex, |
| SpellImplicitTargetInfo const & | targetType ) |
Definition at line 1566 of file Spell.cpp.
References AddGOTarget(), AddItemTarget(), AddUnitTarget(), ASSERT, CallScriptObjectTargetSelectHandlers(), m_targets, SelectImplicitChainTargets(), Object::ToGameObject(), and Object::ToUnit().
Referenced by SelectEffectImplicitTargets().
| void Spell::SelectImplicitTrajTargets | ( | ) |
Definition at line 1634 of file Spell.cpp.
References CHECK_DIST, DEBUG_TRAJ, GRID_MAP_TYPE_MASK_ALL, m_caster, m_spellInfo, m_targets, Position::Relocate(), SearchTargets(), SF_LOG_ERROR, tangent(), and unitTarget.
Referenced by SelectImplicitDestDestTargets().
| void Spell::SelectSpellTargets | ( | ) |
Definition at line 730 of file Spell.cpp.
References AddDestTarget(), finish(), GetTargetFlagMask(), m_auraScaleMask, m_caster, m_channelTargetEffectMask, m_delayMoment, m_spellInfo, m_targets, m_UniqueTargetInfo, MAX_SPELL_EFFECTS, SelectEffectImplicitTargets(), SelectEffectTypeImplicitTargets(), SelectExplicitTargets(), SendCastResult(), SPELL_ATTR9_SPECIAL_DELAY_CALCULATION, SPELL_FAILED_LOWLEVEL, TARGET_FLAG_GAMEOBJECT, TARGET_FLAG_GAMEOBJECT_ITEM, and TARGET_FLAG_UNIT.
Referenced by CanAutoCast(), and cast().
|
static |
Definition at line 3874 of file Spell.cpp.
References ByteBuffer::bitwpos(), SpellInfo::Effects, SpellInfo::EquippedItemClass, SpellInfo::EquippedItemSubClassMask, ByteBuffer::FlushBits(), SpellInfo::GetAllEffectsMechanicMask(), Skyfire::Diagnostics::GetRuntimeMetrics(), Player::GetSession(), Player::HasItemCount(), SpellInfo::Id, ItemTemplate::ItemLimitCategory, SpellEffectInfo::ItemType, MAX_SPELL_EFFECTS, MAX_SPELL_REAGENTS, ByteBuffer::PutBits(), SpellInfo::Reagent, SpellInfo::ReagentCount, Skyfire::Diagnostics::RuntimeMetrics::RecordSpellCastFailure(), SpellInfo::RequiresSpellFocus, WorldSession::SendPacket(), sObjectMgr, SPELL_CAST_OK, SPELL_FAILED_CUSTOM_ERROR, SPELL_FAILED_EQUIPPED_ITEM_CLASS, SPELL_FAILED_EQUIPPED_ITEM_CLASS_MAINHAND, SPELL_FAILED_EQUIPPED_ITEM_CLASS_OFFHAND, SPELL_FAILED_FISHING_TOO_LOW, SPELL_FAILED_MIN_SKILL, SPELL_FAILED_NEED_EXOTIC_AMMO, SPELL_FAILED_NEED_MORE_ITEMS, SPELL_FAILED_NOT_READY, SPELL_FAILED_PREVENTED_BY_MECHANIC, SPELL_FAILED_REAGENTS, SPELL_FAILED_REQUIRES_AREA, SPELL_FAILED_REQUIRES_SPELL_FOCUS, SPELL_FAILED_SILENCED, SPELL_FAILED_TOO_MANY_OF_ITEM, SPELL_FAILED_TOTEM_CATEGORY, SPELL_FAILED_TOTEMS, SpellInfo::Totem, SpellInfo::TotemCategory, ByteBuffer::wpos(), and ByteBuffer::WriteBit().
Referenced by cancel(), cast(), spell_putricide_mutation_init::spell_putricide_mutation_init_SpellScript::CheckRequirement(), EffectApplyGlyph(), EffectDuel(), EffectOpenLock(), EffectTaunt(), WorldSession::HandleAcceptTradeOpcode(), WorldSession::HandlePetActionHelper(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), misc_commandscript::HandleUnstuckCommand(), icecrown_citadel_teleport::OnGossipSelect(), at_frozen_throne_teleport::OnTrigger(), item_only_for_flight::OnUse(), item_petrov_cluster_bombs::OnUse(), prepare(), SelectImplicitAreaTargets(), SelectImplicitCasterDestTargets(), SelectSpellTargets(), SendCastResult(), and SendPetCastResult().
| void Spell::SendCastResult | ( | SpellCastResult | result | ) |
Definition at line 3848 of file Spell.cpp.
References m_cast_count, m_caster, m_customError, m_spellInfo, SendCastResult(), SPELL_CAST_OK, and TYPEID_PLAYER.
| void Spell::SendChannelStart | ( | uint32 | duration | ) |
Definition at line 5041 of file Spell.cpp.
References m_caster, m_spellInfo, m_targets, m_timer, m_UniqueGOTargetInfo, m_UniqueTargetInfo, SMSG_SPELL_CHANNEL_START, UNIT_FIELD_CHANNEL_OBJECT, UNIT_FIELD_CHANNEL_SPELL, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by handle_immediate().
| void Spell::SendChannelUpdate | ( | uint32 | time | ) |
Definition at line 5023 of file Spell.cpp.
References m_caster, SMSG_SPELL_CHANNEL_UPDATE, UNIT_FIELD_CHANNEL_OBJECT, UNIT_FIELD_CHANNEL_SPELL, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by cancel(), DelayedChannel(), Unit::FinishSpell(), prepare(), SelectImplicitCasterDestTargets(), and update().
| void Spell::SendInterrupted | ( | uint8 | result | ) |
Definition at line 4988 of file Spell.cpp.
References WorldPacket::Initialize(), m_cast_count, m_caster, m_spellInfo, SMSG_SPELL_FAILED_OTHER, SMSG_SPELL_FAILURE, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void Spell::SendLogExecute | ( | ) |
Definition at line 4804 of file Spell.cpp.
References SpellLogHelper::CreatedItems, SpellLogHelper::Energizes, SpellLogHelper::ExtraAttacks, ByteBuffer::FlushBits(), m_caster, m_effectExecuteData, m_spellInfo, SpellLogHelper::PetFeed, SMSG_SPELL_EXECUTE_LOG, SpellLogHelper::Targets, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by FinishTargetProcessing().
Definition at line 755 of file SpellEffectsCombat.cpp.
References GAMEOBJECT_TYPE_BUTTON, GAMEOBJECT_TYPE_CHEST, GAMEOBJECT_TYPE_DOOR, GAMEOBJECT_TYPE_GOOBER, GAMEOBJECT_TYPE_QUESTGIVER, GAMEOBJECT_TYPE_SPELL_FOCUS, gameObjTarget, Object::GetGUIDLow(), WorldObject::GetMap(), WorldObject::GetName(), Player::IsGameMaster(), m_caster, Player::PrepareGossipMenu(), Map::ScriptsStart(), Player::SendLoot(), Player::SendPreparedGossip(), sEventScripts, SF_LOG_DEBUG, SF_LOG_ERROR, and sScriptMgr.
Referenced by EffectOpenLock().
| void Spell::SendPetCastResult | ( | SpellCastResult | result | ) |
Definition at line 3862 of file Spell.cpp.
References Object::GetTypeId(), m_cast_count, m_caster, m_spellInfo, SendCastResult(), SMSG_PET_CAST_FAILED, SPELL_CAST_OK, SPELL_CUSTOM_ERROR_NONE, Object::ToPlayer(), and TYPEID_PLAYER.
Referenced by WorldSession::HandlePetActionHelper(), and WorldSession::HandlePetCastSpellOpcode().
| void Spell::SendResurrectRequest | ( | Player * | target | ) |
Definition at line 5108 of file Spell.cpp.
References Player::GetSession(), WorldSession::GetSessionDbLocaleIndex(), m_caster, m_spellInfo, WorldSession::SendPacket(), SMSG_RESURRECT_REQUEST, TYPEID_PLAYER, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteByteSeq(), and ByteBuffer::WriteString().
Referenced by EffectResurrect(), EffectResurrectNew(), and EffectResurrectWithAura().
| void Spell::SendSpellCooldown | ( | ) |
Definition at line 3650 of file Spell.cpp.
References _triggeredCastFlags, Player::AddSpellAndCategoryCooldowns(), m_caster, m_CastItem, m_spellInfo, Player::SetLastPotionId(), and TRIGGERED_IGNORE_SPELL_AND_CATEGORY_CD.
Referenced by cast(), and EffectStuck().
| void Spell::SendSpellGo | ( | ) |
Definition at line 4341 of file Spell.cpp.
References ByteBuffer::bitwpos(), CAST_FLAG_ADJUST_MISSILE, CAST_FLAG_HEAL_PREDICTION, CAST_FLAG_IMMUNITY, CAST_FLAG_PENDING, CAST_FLAG_POWER_LEFT_SELF, CAST_FLAG_PROJECTILE, CAST_FLAG_RUNE_LIST, CAST_FLAG_UNKNOWN_19, CAST_FLAG_UNKNOWN_9, CAST_FLAG_VISUAL_CHAIN, CLASS_DEATH_KNIGHT, ByteBuffer::FlushBits(), getMSTime(), IsNeedSendToClient(), IsTriggered(), m_cast_count, m_caster, m_CastItem, m_channelTargetEffectMask, m_delayMoment, m_powerType, m_runesState, m_spellInfo, m_targets, m_triggeredByAuraSpell, m_UniqueGOTargetInfo, m_UniqueTargetInfo, MAX_RUNES, POWER_HEALTH, POWER_RUNES, ByteBuffer::PutBits(), SMSG_SPELL_GO, SPELL_EFFECT_ACTIVATE_RUNE, SPELL_MISS_IMMUNE2, SPELL_MISS_NONE, SPELL_MISS_REFLECT, TARGET_FLAG_DEST_LOCATION, TARGET_FLAG_SOURCE_LOCATION, TARGET_FLAG_STRING, TYPEID_PLAYER, TYPEID_UNIT, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteByteSeq(), and ByteBuffer::WriteString().
Referenced by cast().
| void Spell::SendSpellStart | ( | ) |
Definition at line 4012 of file Spell.cpp.
References CAST_FLAG_ADJUST_MISSILE, CAST_FLAG_HAS_TRAJECTORY, CAST_FLAG_HEAL_PREDICTION, CAST_FLAG_IMMUNITY, CAST_FLAG_PENDING, CAST_FLAG_POWER_LEFT_SELF, CAST_FLAG_PROJECTILE, CAST_FLAG_RUNE_LIST, CAST_FLAG_UNKNOWN_19, CAST_FLAG_VISUAL_CHAIN, ByteBuffer::FlushBits(), IsNeedSendToClient(), IsTriggered(), m_cast_count, m_caster, m_CastItem, m_casttime, m_powerType, m_spellInfo, m_targets, m_triggeredByAuraSpell, MAX_RUNES, POWER_HEALTH, POWER_RUNES, SMSG_SPELL_START, TARGET_FLAG_DEST_LOCATION, TARGET_FLAG_SOURCE_LOCATION, TARGET_FLAG_STRING, TYPEID_PLAYER, TYPEID_UNIT, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteByteSeq(), and ByteBuffer::WriteString().
Referenced by prepare().
|
inline |
Definition at line 544 of file Spell.h.
References m_autoRepeat.
Referenced by LuaSpell::SetAutoRepeat().
|
inline |
|
inline |
|
inline |
Definition at line 552 of file Spell.h.
References m_referencedFromCurrentSpell.
Referenced by cancel(), Unit::InterruptSpell(), and Unit::SetCurrentCastedSpell().
| void Spell::SetSpellValue | ( | SpellValueMod | mod, |
| int32 | value ) |
Definition at line 7659 of file Spell.cpp.
References EFFECT_0, EFFECT_1, EFFECT_2, m_spellInfo, m_spellValue, SPELLVALUE_AURA_STACK, SPELLVALUE_BASE_POINT0, SPELLVALUE_BASE_POINT1, SPELLVALUE_BASE_POINT2, SPELLVALUE_MAX_TARGETS, and SPELLVALUE_RADIUS_MOD.
Referenced by Player::CastItemUseSpell(), Unit::CastSpell(), EffectDummy(), and spell_yogg_saron_sanity::spell_yogg_saron_sanity_SpellScript::ModSanityStacks().
|
inline |
Definition at line 495 of file Spell.h.
References m_spellState.
|
protected |
Definition at line 1033 of file SpellEffectsSummon.cpp.
References Creature::AI(), SummonPropertiesEntry::Category, destTarget, CreatureAI::EnterEvadeMode(), ExecuteLogEffectSummonObject(), Object::GetEntry(), Unit::getFaction(), Unit::getLevel(), WorldObject::GetMap(), Minion::GetOwner(), Player::GetSkillValue(), Object::GetTypeId(), Unit::HasUnitTypeMask(), Unit::IsTotem(), m_caster, m_CastItem, m_originalCaster, m_spellInfo, m_targets, PLAYER_FIELD_VISIBLE_ITEMS, Creature::SetDisplayId(), Unit::setFaction(), Object::SetUInt32Value(), SKILL_ENGINEERING, SPELLMOD_DURATION, SUMMON_CATEGORY_ALLY, Map::SummonCreature(), Object::ToPlayer(), Unit::ToTotem(), TYPEID_PLAYER, UNIT_FIELD_VIRTUAL_ITEM_ID, UNIT_MASK_GUARDIAN, and UNIT_MASK_MINION.
Referenced by EffectSummonPet(), and EffectSummonType().
| void Spell::TakeCastItem | ( | ) |
Definition at line 5147 of file Spell.cpp.
References _triggeredCastFlags, ITEM_CHANGED, m_caster, m_CastItem, m_targets, MAX_ITEM_PROTO_SPELLS, SF_LOG_ERROR, _Spell::SpellCharges, _Spell::SpellId, ItemTemplate::Spells, ItemTemplate::Stackable, and TRIGGERED_IGNORE_CAST_ITEM.
Referenced by cast(), and handle_immediate().
| void Spell::TakePower | ( | ) |
Definition at line 5213 of file Spell.cpp.
References CHEAT_POWER, m_caster, m_CastItem, m_powerCost, m_powerType, m_spellInfo, m_targets, m_triggeredByAuraSpell, m_UniqueTargetInfo, MAX_POWERS, POWER_CHI, POWER_ENERGY, POWER_HEALTH, POWER_RAGE, POWER_RUNES, SF_LOG_ERROR, SPELL_MISS_NONE, SPELLMOD_SPELL_COST_REFUND_ON_FAIL, TakeRunePower(), and TYPEID_PLAYER.
Referenced by cast().
| void Spell::TakeReagents | ( | ) |
Definition at line 5383 of file Spell.cpp.
References Player::CanNoReagentCast(), Player::DestroyItemCount(), ItemTemplate::Flags, ITEM_PROTO_FLAG_TRIGGERED_CAST, ItemTemplate::ItemId, m_caster, m_CastItem, m_spellInfo, m_targets, MAX_ITEM_PROTO_SPELLS, MAX_SPELL_REAGENTS, _Spell::SpellCharges, ItemTemplate::Spells, and TYPEID_PLAYER.
Referenced by cast().
| void Spell::TakeRunePower | ( | bool | didHit | ) |
Definition at line 5320 of file Spell.cpp.
References CLASS_DEATH_KNIGHT, Player::GetCurrentRune(), Player::GetRuneBaseCooldown(), Player::GetRuneCooldown(), Player::GetRunesState(), m_caster, m_runesState, m_spellInfo, MAX_RUNES, Unit::ModifyPower(), SpellRuneCostEntry::NoRuneCost(), SpellRuneCostEntry::NoRunicPowerGain(), NUM_RUNE_TYPES, POWER_RUNIC_POWER, RATE_POWER_RUNICPOWER_INCOME, Player::RestoreBaseRune(), RUNE_BLOOD, RUNE_DEATH, RUNE_FROST, RUNE_MISS_COOLDOWN, RUNE_UNHOLY, SpellRuneCostEntry::RuneCost, SpellRuneCostEntry::runePowerGain, Player::SetLastUsedRune(), Player::SetRuneCooldown(), SPELLMOD_COST, sSpellRuneCostStore, sWorld, and TYPEID_PLAYER.
Referenced by TakePower().
|
protected |
Definition at line 7979 of file Spell.cpp.
References CHEAT_COOLDOWN, m_caster, m_spellInfo, MAX_GCD, MIN_GCD, SPELLMOD_GLOBAL_COOLDOWN, TYPEID_PLAYER, and UNIT_FIELD_MOD_CASTING_SPEED.
Referenced by prepare().
| void Spell::update | ( | uint32 | difftime | ) |
Definition at line 3671 of file Spell.cpp.
References cancel(), cast(), finish(), IsAutoRepeat(), IsNextMeleeSwingSpell(), IsTriggered(), m_caster, m_casttime, m_periodicPowerCost, m_periodicPowerTimer, m_powerType, m_spellInfo, m_spellState, m_targets, m_timer, MOVEMENTFLAG_FALLING_FAR, SendChannelUpdate(), SF_LOG_DEBUG, SF_LOG_ERROR, SPELL_AURA_CAST_WHILE_WALKING, SPELL_EFFECT_STUCK, SPELL_INTERRUPT_FLAG_MOVEMENT, SPELL_STATE_CASTING, SPELL_STATE_PREPARING, TYPEID_PLAYER, UpdateChanneledTargetList(), and UpdatePointers().
|
protected |
Definition at line 2882 of file Spell.cpp.
References Unit::GetAuraApplication(), ObjectAccessor::GetUnit(), IsValidDeadOrAliveTarget(), m_caster, m_channelTargetEffectMask, m_originalCasterGUID, m_spellInfo, m_UniqueTargetInfo, MAX_SPELL_EFFECTS, Unit::RemoveAura(), SPELL_EFFECT_APPLY_AURA, SPELL_MISS_NONE, and SPELLMOD_RANGE.
Referenced by update().
| void Spell::UpdatePointers | ( | ) |
Definition at line 7210 of file Spell.cpp.
References SpellDestination::_position, SpellDestination::_transportGUID, SpellDestination::_transportOffset, Object::GetGUID(), ObjectAccessor::GetUnit(), ObjectAccessor::GetWorldObject(), m_caster, m_CastItem, m_castItemGUID, m_destTargets, m_originalCaster, m_originalCasterGUID, m_targets, MAX_SPELL_EFFECTS, Position::Relocate(), Position::RelocateOffset(), and TYPEID_PLAYER.
Referenced by cast(), handle_delayed(), and update().
|
friend |
|
friend |
References Spell().
|
protected |
Definition at line 752 of file Spell.h.
Referenced by cast(), CheckCast(), CheckItems(), CheckPetCast(), CheckRange(), IsTriggered(), prepare(), prepareDataForTriggerSystem(), SendSpellCooldown(), Spell(), and TakeCastItem().
|
protected |
Definition at line 630 of file Spell.h.
Referenced by CheckCast(), CheckEffectTarget(), DoCreateItem(), EffectActivateRune(), EffectActivateSpec(), EffectAddComboPoints(), EffectAddExtraAttacks(), EffectDamageFromMaxHealthPCT(), EffectDestroyAllTotems(), EffectDispel(), EffectDistract(), EffectDurabilityDamage(), EffectDurabilityDamagePCT(), EffectEnchantHeldItem(), EffectEnergize(), EffectEnergizePct(), EffectEnvironmentalDMG(), EffectForceCast(), EffectGameObjectDamage(), EffectGameObjectRepair(), EffectGiveCurrency(), EffectHeal(), EffectHealMaxHealth(), EffectHealMechanical(), EffectHealPct(), EffectHealthLeech(), EffectInebriate(), EffectKnockBack(), EffectLeapBack(), EffectLearnSkill(), EffectLearnSpell(), EffectModifyThreatPercent(), EffectPowerBurn(), EffectPowerDrain(), EffectRedirectThreat(), EffectReputation(), EffectResurrect(), EffectResurrectNew(), EffectResurrectWithAura(), EffectSchoolDMG(), EffectScriptEffect(), EffectSelfResurrect(), EffectSpecCount(), EffectStealBeneficialBuff(), EffectSummonDeadPet(), EffectSummonType(), EffectThreat(), EffectTriggerMissileSpell(), EffectTriggerSpell(), EffectWeaponDmg(), and HandleEffects().
|
protected |
Definition at line 629 of file Spell.h.
Referenced by EffectAddFarsight(), EffectBind(), EffectChargeDest(), EffectCreateAreaTrigger(), EffectDistract(), EffectJumpDest(), EffectKnockBack(), EffectLeap(), EffectPersistentAA(), EffectPullTowards(), EffectScriptEffect(), EffectSummonObject(), EffectSummonObjectWild(), EffectSummonType(), EffectTeleportUnits(), EffectTransmitted(), HandleEffects(), and SummonGuardian().
|
protected |
Definition at line 631 of file Spell.h.
Referenced by EffectActivateObject(), EffectActivateRune(), EffectActivateSpec(), EffectAddComboPoints(), EffectAddExtraAttacks(), EffectAddFarsight(), EffectApplyAreaAura(), EffectApplyAura(), EffectApplyGlyph(), EffectBattlePetsUnlock(), EffectBind(), EffectBlock(), EffectCastButtons(), EffectCharge(), EffectChargeDest(), EffectCreateAreaTrigger(), EffectCreateItem(), EffectCreateItem2(), EffectCreateRandomItem(), EffectCreateTamedPet(), EffectDamageFromMaxHealthPCT(), EffectDestroyAllTotems(), EffectDestroyItem(), EffectDiscoverTaxi(), EffectDisEnchant(), EffectDismissPet(), EffectDispel(), EffectDispelMechanic(), EffectDistract(), EffectDodge(), EffectDualWield(), EffectDuel(), EffectDummy(), EffectDurabilityDamage(), EffectDurabilityDamagePCT(), EffectEnchantHeldItem(), EffectEnchantItemPerm(), EffectEnchantItemPrismatic(), EffectEnchantItemTmp(), EffectEnergize(), EffectEnergizePct(), EffectEnvironmentalDMG(), EffectFeedPet(), EffectForceCast(), EffectForceDeselect(), EffectGameObjectDamage(), EffectGameObjectRepair(), EffectGameObjectSetDestructionState(), EffectGiveCurrency(), EffectHeal(), EffectHealBattlePetPct(), EffectHealMaxHealth(), EffectHealMechanical(), EffectHealPct(), EffectHealthLeech(), EffectInebriate(), EffectInstaKill(), EffectInterruptCast(), EffectJump(), EffectJumpDest(), EffectKillCredit(), EffectKillCreditPersonal(), EffectKnockBack(), EffectLeap(), EffectLeapBack(), EffectLearnPetSpell(), EffectLearnSkill(), EffectLearnSpell(), EffectMilling(), EffectModifyThreatPercent(), EffectOpenLock(), EffectParry(), EffectPersistentAA(), EffectPickPocket(), EffectPlayMovie(), EffectPlayMusic(), EffectPlaySound(), EffectPowerBurn(), EffectPowerDrain(), EffectProficiency(), EffectProspecting(), EffectPullTowards(), EffectQuestClear(), EffectQuestComplete(), EffectQuestFail(), EffectQuestStart(), EffectRechargeManaGem(), EffectRedirectThreat(), EffectRemoveAura(), EffectRemoveTalent(), EffectRenamePet(), EffectReputation(), EffectResurrect(), EffectResurrectNew(), EffectResurrectWithAura(), EffectSanctuary(), EffectSchoolDMG(), EffectScriptEffect(), EffectSelfResurrect(), EffectSendEvent(), EffectSendTaxi(), EffectSkill(), EffectSkinning(), EffectSkinPlayerCorpse(), EffectSpecCount(), EffectSpiritHeal(), EffectStealBeneficialBuff(), EffectStuck(), EffectSummonChangeItem(), EffectSummonDeadPet(), EffectSummonObject(), EffectSummonObjectWild(), EffectSummonPet(), EffectSummonPlayer(), EffectSummonRaFFriend(), EffectSummonType(), EffectTameCreature(), EffectTaunt(), EffectTeleportUnits(), EffectTeleUnitsFaceCaster(), EffectThreat(), EffectTitanGrip(), EffectTradeSkill(), EffectTransmitted(), EffectTriggerMissileSpell(), EffectTriggerRitualOfSummoning(), EffectTriggerSpell(), EffectUnlearnSpecialization(), EffectUnlockGuildVaultTab(), EffectUntrainTalents(), EffectWeaponDmg(), and HandleEffects().
|
protected |
Definition at line 640 of file Spell.h.
Referenced by CheckCast(), EffectSendEvent(), EffectSummonObjectWild(), SelectImplicitNearbyTargets(), and Spell().
|
protected |
Definition at line 628 of file Spell.h.
Referenced by EffectActivateObject(), EffectDummy(), EffectGameObjectDamage(), EffectGameObjectRepair(), EffectGameObjectSetDestructionState(), EffectOpenLock(), EffectSendEvent(), HandleEffects(), SendLoot(), and Spell().
|
protected |
Definition at line 627 of file Spell.h.
Referenced by EffectDisEnchant(), EffectDummy(), EffectEnchantItemPerm(), EffectEnchantItemPrismatic(), EffectEnchantItemTmp(), EffectFeedPet(), EffectMilling(), EffectOpenLock(), EffectProspecting(), EffectScriptEffect(), HandleEffects(), SelectEffectTypeImplicitTargets(), and Spell().
| UsedSpellMods Spell::m_appliedMods |
Definition at line 540 of file Spell.h.
Referenced by cancel(), Player::DropModCharge(), Player::IsAffectedBySpellmod(), Player::RemoveSpellMods(), and Player::RestoreSpellMods().
|
protected |
Definition at line 622 of file Spell.h.
Referenced by DoAllEffectOnLaunchTarget(), HandleLaunchPhase(), SelectImplicitChainTargets(), and Spell().
|
protected |
Definition at line 593 of file Spell.h.
Referenced by CheckItems(), DoAllEffectOnLaunchTarget(), DoAllEffectOnTarget(), EffectWeaponDmg(), prepareDataForTriggerSystem(), and Spell().
|
protected |
Definition at line 760 of file Spell.h.
Referenced by AddUnitTarget(), prepare(), SelectSpellTargets(), and Spell().
|
protected |
Definition at line 600 of file Spell.h.
Referenced by cancel(), IsAutoRepeat(), SetAutoRepeat(), and Spell().
|
protected |
Definition at line 599 of file Spell.h.
Referenced by AddUnitTarget(), and Spell().
| uint8 Spell::m_cast_count |
Definition at line 533 of file Spell.h.
Referenced by Player::CastItemUseSpell(), WorldSession::HandleCastSpellOpcode(), WorldSession::HandlePetCastSpellOpcode(), prepare(), SendCastResult(), SendInterrupted(), SendPetCastResult(), SendSpellGo(), SendSpellStart(), and Spell().
|
protected |
Definition at line 581 of file Spell.h.
Referenced by _handle_finish_phase(), AddGOTarget(), AddUnitTarget(), CalculateDamage(), cancel(), CancelGlobalCooldown(), CanOpenLock(), cast(), CheckCast(), CheckCasterAuras(), CheckDst(), CheckEffectTarget(), CheckItems(), CheckPetCast(), CheckPower(), CheckRange(), CheckRuneCost(), CheckSrc(), Delayed(), DelayedChannel(), DoAllEffectOnLaunchTarget(), DoAllEffectOnTarget(), DoAllEffectOnTarget(), DoSpellHitOnUnit(), DoTriggersOnSpellHit(), EffectActivateObject(), EffectActivateRune(), EffectAddComboPoints(), EffectAddFarsight(), EffectApplyGlyph(), EffectBind(), EffectBlock(), EffectCastButtons(), EffectCharge(), EffectChargeDest(), EffectCreateAreaTrigger(), EffectCreateItem(), EffectCreateItem2(), EffectDestroyAllTotems(), EffectDisEnchant(), EffectDispel(), EffectDispelMechanic(), EffectDodge(), EffectDuel(), EffectDummy(), EffectEnchantHeldItem(), EffectEnchantItemPerm(), EffectEnchantItemPrismatic(), EffectEnchantItemTmp(), EffectEnergize(), EffectEnergizePct(), EffectEnvironmentalDMG(), EffectFeedPet(), EffectForceCast(), EffectForceDeselect(), EffectGameObjectRepair(), EffectHeal(), EffectHealBattlePetPct(), EffectHealMaxHealth(), EffectHealthLeech(), EffectInstaKill(), EffectJump(), EffectJumpDest(), EffectKnockBack(), EffectLeap(), EffectLeapBack(), EffectLearnSpell(), EffectMilling(), EffectModifyThreatPercent(), EffectOpenLock(), EffectParry(), EffectPersistentAA(), EffectPickPocket(), EffectPlaySound(), EffectPowerBurn(), EffectPowerDrain(), EffectProficiency(), EffectProspecting(), EffectPullTowards(), EffectRechargeManaGem(), EffectRedirectThreat(), EffectResurrect(), EffectResurrectNew(), EffectResurrectWithAura(), EffectSanctuary(), EffectSchoolDMG(), EffectScriptEffect(), EffectSelfResurrect(), EffectSendEvent(), EffectSkinning(), EffectSkinPlayerCorpse(), EffectStealBeneficialBuff(), EffectStuck(), EffectSummonChangeItem(), EffectSummonDeadPet(), EffectSummonObject(), EffectSummonObjectWild(), EffectSummonPet(), EffectSummonPlayer(), EffectSummonRaFFriend(), EffectSummonType(), EffectTameCreature(), EffectTaunt(), EffectTeleportUnits(), EffectTeleUnitsFaceCaster(), EffectThreat(), EffectTitanGrip(), EffectTradeSkill(), EffectTransmitted(), EffectTriggerMissileSpell(), EffectTriggerRitualOfSummoning(), EffectTriggerSpell(), EffectUnlearnSpecialization(), EffectUnlockGuildVaultTab(), EffectUntrainTalents(), EffectWeaponDmg(), ExecuteLogEffectInterruptCast(), finish(), GetCaster(), handle_delayed(), handle_immediate(), HandleHolyPower(), HandleThreatSpells(), HasGlobalCooldown(), InitExplicitTargets(), IsChannelActive(), prepare(), prepareDataForTriggerSystem(), PrepareTriggersExecutedOnHit(), SearchAreaTargets(), SearchChainTargets(), SearchNearbyTarget(), SearchSpellFocus(), SelectEffectImplicitTargets(), SelectEffectTypeImplicitTargets(), SelectExplicitTargets(), SelectImplicitAreaTargets(), SelectImplicitCasterDestTargets(), SelectImplicitCasterObjectTargets(), SelectImplicitChainTargets(), SelectImplicitChannelTargets(), SelectImplicitConeTargets(), SelectImplicitDestDestTargets(), SelectImplicitNearbyTargets(), SelectImplicitTargetDestTargets(), SelectImplicitTrajTargets(), SelectSpellTargets(), SendCastResult(), SendChannelStart(), SendChannelUpdate(), SendInterrupted(), SendLogExecute(), SendLoot(), SendPetCastResult(), SendResurrectRequest(), SendSpellCooldown(), SendSpellGo(), SendSpellStart(), Spell(), SummonGuardian(), TakeCastItem(), TakePower(), TakeReagents(), TakeRunePower(), TriggerGlobalCooldown(), update(), UpdateChanneledTargetList(), UpdatePointers(), and ~Spell().
| Item* Spell::m_CastItem |
Definition at line 531 of file Spell.h.
Referenced by CanOpenLock(), cast(), Player::CastItemUseSpell(), Unit::CastSpell(), CheckCast(), CheckItems(), CheckPower(), DoSpellHitOnUnit(), EffectEnchantItemPerm(), EffectEnergize(), EffectInebriate(), EffectOpenLock(), EffectSummonChangeItem(), WorldSession::HandleAcceptTradeOpcode(), prepare(), SendSpellCooldown(), SendSpellGo(), SendSpellStart(), Spell(), SummonGuardian(), TakeCastItem(), TakePower(), TakeReagents(), and UpdatePointers().
| uint64 Spell::m_castItemGUID |
Definition at line 532 of file Spell.h.
Referenced by CheckItems(), prepare(), Spell(), and UpdatePointers().
|
protected |
Definition at line 598 of file Spell.h.
Referenced by CheckRange(), Delayed(), GetCastTime(), prepare(), ReSetTimer(), SendSpellStart(), Spell(), and update().
|
protected |
Definition at line 672 of file Spell.h.
Referenced by SelectSpellTargets(), SendSpellGo(), Spell(), and UpdateChanneledTargetList().
| int8 Spell::m_comboPointGain |
Definition at line 536 of file Spell.h.
Referenced by _handle_finish_phase(), and Spell().
| SpellCustomErrors Spell::m_customError |
Definition at line 537 of file Spell.h.
Referenced by CheckCast(), SendCastResult(), and Spell().
|
protected |
Definition at line 643 of file Spell.h.
Referenced by DoAllEffectOnLaunchTarget(), DoAllEffectOnTarget(), EffectDamageFromMaxHealthPCT(), EffectHeal(), EffectHealthLeech(), EffectPowerBurn(), EffectSchoolDMG(), and EffectWeaponDmg().
|
protected |
Definition at line 623 of file Spell.h.
Referenced by DoAllEffectOnLaunchTarget(), and SelectImplicitChainTargets().
|
protected |
Definition at line 603 of file Spell.h.
Referenced by isDelayableNoMore(), and Spell().
|
protected |
Definition at line 615 of file Spell.h.
Referenced by AddGOTarget(), AddUnitTarget(), CleanupTargetList(), GetDelayMoment(), SelectSpellTargets(), and SendSpellGo().
|
protected |
Definition at line 614 of file Spell.h.
Referenced by GetDelayStart(), SetDelayStart(), and Spell().
|
protected |
Definition at line 690 of file Spell.h.
Referenced by AddDestTarget(), HandleEffects(), Spell(), and UpdatePointers().
|
protected |
Definition at line 637 of file Spell.h.
Referenced by _handle_immediate_phase(), and DoSpellHitOnUnit().
|
protected |
Definition at line 636 of file Spell.h.
Referenced by _handle_immediate_phase(), and DoSpellHitOnUnit().
|
protected |
Definition at line 764 of file Spell.h.
Referenced by CheckEffectExecuteData(), ExecuteLogEffectCreateItem(), ExecuteLogEffectDestroyItem(), ExecuteLogEffectExtraAttacks(), ExecuteLogEffectOpenLock(), ExecuteLogEffectResurrect(), ExecuteLogEffectSummonObject(), ExecuteLogEffectTakeTargetPower(), ExecuteLogEffectUnsummonObject(), and SendLogExecute().
|
protected |
Definition at line 620 of file Spell.h.
Referenced by IsDeletable(), IsInterruptable(), SetExecutedCurrently(), and Spell().
| uint32 Spell::m_glyphIndex |
Definition at line 534 of file Spell.h.
Referenced by Player::CastItemUseSpell(), EffectApplyGlyph(), EffectRemoveTalent(), WorldSession::HandleCastSpellOpcode(), and Spell().
|
protected |
Definition at line 644 of file Spell.h.
Referenced by DoAllEffectOnLaunchTarget(), DoAllEffectOnTarget(), EffectHealMaxHealth(), EffectHealMechanical(), and EffectHealPct().
|
protected |
Definition at line 740 of file Spell.h.
Referenced by DoTriggersOnSpellHit(), and PrepareTriggersExecutedOnHit().
|
protected |
Definition at line 616 of file Spell.h.
Referenced by cast(), and handle_delayed().
|
protected |
Definition at line 727 of file Spell.h.
Referenced by CallScriptAfterCastHandlers(), CallScriptAfterHitHandlers(), CallScriptBeforeCastHandlers(), CallScriptBeforeHitHandlers(), CallScriptCheckCastHandlers(), CallScriptEffectHandlers(), CallScriptObjectAreaTargetSelectHandlers(), CallScriptObjectTargetSelectHandlers(), CallScriptOnCastHandlers(), CallScriptOnHitHandlers(), CheckScriptEffectImplicitTargets(), LoadScripts(), PrepareScriptHitHandlers(), and ~Spell().
|
protected |
Definition at line 621 of file Spell.h.
Referenced by _handle_finish_phase(), CheckCast(), DoAllEffectOnTarget(), prepare(), and Spell().
|
protected |
Definition at line 587 of file Spell.h.
Referenced by _handle_immediate_phase(), AddUnitTarget(), CheckCast(), DoAllEffectOnTarget(), DoSpellHitOnUnit(), EffectCreateAreaTrigger(), EffectGameObjectDamage(), EffectGameObjectSetDestructionState(), EffectHeal(), EffectHealMechanical(), EffectHealPct(), EffectHealthLeech(), EffectInterruptCast(), EffectPersistentAA(), EffectPowerBurn(), EffectPowerDrain(), EffectSchoolDMG(), EffectScriptEffect(), EffectSummonPet(), EffectSummonType(), EffectTransmitted(), GetOriginalCaster(), HandleLaunchPhase(), prepare(), prepareDataForTriggerSystem(), SelectImplicitChannelTargets(), Spell(), SummonGuardian(), and UpdatePointers().
|
protected |
Definition at line 585 of file Spell.h.
Referenced by cancel(), CheckEffectTarget(), DelayedChannel(), EffectDummy(), EffectForceCast(), EffectHeal(), EffectTriggerMissileSpell(), EffectTriggerSpell(), Spell(), UpdateChanneledTargetList(), and UpdatePointers().
|
protected |
|
protected |
|
protected |
Definition at line 597 of file Spell.h.
Referenced by CheckPower(), EffectCastButtons(), GetPowerCost(), HandleHolyPower(), prepare(), Spell(), and TakePower().
|
protected |
Definition at line 594 of file Spell.h.
Referenced by _handle_finish_phase(), CheckPower(), CheckRuneCost(), GetPowerType(), prepare(), SendSpellGo(), SendSpellStart(), Spell(), TakePower(), and update().
|
protected |
Definition at line 761 of file Spell.h.
Referenced by CheckCast(), EffectCharge(), and Spell().
|
protected |
Definition at line 649 of file Spell.h.
Referenced by _handle_immediate_phase(), DoAllEffectOnTarget(), and prepareDataForTriggerSystem().
|
protected |
Definition at line 651 of file Spell.h.
Referenced by _handle_immediate_phase(), DoAllEffectOnTarget(), and prepareDataForTriggerSystem().
|
protected |
Definition at line 650 of file Spell.h.
Referenced by DoAllEffectOnTarget(), and prepareDataForTriggerSystem().
|
protected |
Definition at line 619 of file Spell.h.
Referenced by IsDeletable(), SetReferencedFromCurrent(), Spell(), and ~Spell().
| SpellResearchData const* Spell::m_researchData |
Definition at line 538 of file Spell.h.
Referenced by Player::CastItemUseSpell(), EffectCreateItem(), EffectCreateItem2(), WorldSession::HandleCastSpellOpcode(), Player::SolveResearchProject(), Spell(), and ~Spell().
|
protected |
Definition at line 601 of file Spell.h.
Referenced by EffectActivateRune(), SendSpellGo(), Spell(), and TakeRunePower().
|
protected |
Definition at line 589 of file Spell.h.
Referenced by cancel(), CheckCast(), Unit::SetCurrentCastedSpell(), Spell(), and ~Spell().
|
protected |
Definition at line 759 of file Spell.h.
Referenced by AddUnitTarget(), and Spell().
|
protected |
Definition at line 633 of file Spell.h.
Referenced by _handle_immediate_phase(), DoAllEffectOnTarget(), DoSpellHitOnUnit(), EffectApplyAreaAura(), EffectApplyAura(), EffectPersistentAA(), and Spell().
| SpellInfo const* const Spell::m_spellInfo |
Definition at line 530 of file Spell.h.
Referenced by _handle_immediate_phase(), AddGOTarget(), AddItemTarget(), AddUnitTarget(), CalculateDamage(), CalculateJumpSpeeds(), CallScriptEffectHandlers(), CallScriptObjectAreaTargetSelectHandlers(), CallScriptObjectTargetSelectHandlers(), CanAutoCast(), cancel(), CancelGlobalCooldown(), CanExecuteTriggersOnHit(), CanOpenLock(), cast(), CheckArenaAndRatedBattlegroundCastRules(), CheckCast(), CheckCasterAuras(), CheckEffectTarget(), CheckItems(), CheckPetCast(), CheckPower(), CheckRange(), CheckRuneCost(), CheckScriptEffectImplicitTargets(), Delayed(), DelayedChannel(), DoAllEffectOnLaunchTarget(), DoAllEffectOnTarget(), DoCreateItem(), DoSpellHitOnUnit(), DoTriggersOnSpellHit(), EffectActivateRune(), EffectAddFarsight(), EffectApplyGlyph(), EffectBind(), EffectCastButtons(), EffectCharge(), EffectCreateAreaTrigger(), EffectCreateItem(), EffectCreateItem2(), EffectCreateRandomItem(), EffectCreateTamedPet(), EffectDestroyItem(), EffectDiscoverTaxi(), EffectDisEnchant(), EffectDispel(), EffectDispelMechanic(), EffectDuel(), EffectDummy(), EffectDurabilityDamage(), EffectDurabilityDamagePCT(), EffectEnchantHeldItem(), EffectEnchantItemPerm(), EffectEnchantItemPrismatic(), EffectEnchantItemTmp(), EffectEnergize(), EffectEnergizePct(), EffectEnvironmentalDMG(), EffectFeedPet(), EffectForceCast(), EffectGameObjectSetDestructionState(), EffectGiveCurrency(), EffectHeal(), EffectHealBattlePetPct(), EffectHealMechanical(), EffectHealPct(), EffectHealthLeech(), EffectInstaKill(), EffectInterruptCast(), EffectJumpDest(), EffectKillCredit(), EffectKillCreditPersonal(), EffectKnockBack(), EffectLeapBack(), EffectLearnPetSpell(), EffectLearnSkill(), EffectLearnSpell(), EffectNULL(), EffectOpenLock(), EffectPersistentAA(), EffectPlayMusic(), EffectPlaySound(), EffectPowerBurn(), EffectPowerDrain(), EffectProficiency(), EffectPullTowards(), EffectQuestClear(), EffectQuestComplete(), EffectQuestFail(), EffectQuestStart(), EffectRechargeManaGem(), EffectRemoveAura(), EffectReputation(), EffectResurrect(), EffectResurrectNew(), EffectSanctuary(), EffectSchoolDMG(), EffectScriptEffect(), EffectSelfResurrect(), EffectSendEvent(), EffectSendTaxi(), EffectStealBeneficialBuff(), EffectSummonChangeItem(), EffectSummonObject(), EffectSummonObjectWild(), EffectSummonPet(), EffectSummonRaFFriend(), EffectSummonType(), EffectTameCreature(), EffectTeleportUnits(), EffectTeleUnitsFaceCaster(), EffectTransmitted(), EffectTriggerMissileSpell(), EffectTriggerRitualOfSummoning(), EffectTriggerSpell(), EffectUnlearnSpecialization(), EffectUnlockGuildVaultTab(), EffectUnused(), EffectWeaponDmg(), ExecuteLogEffectInterruptCast(), finish(), GetCurrentContainer(), LuaSpell::GetId(), GetSearcherTypeMask(), GetSpellInfo(), handle_immediate(), HandleEffects(), HandleHolyPower(), HandleLaunchPhase(), HandleThreatSpells(), WorldSession::HandleUpdateMissileTrajectory(), HasGlobalCooldown(), InitExplicitTargets(), IsAutoActionResetSpell(), IsNeedSendToClient(), IsNextMeleeSwingSpell(), IsValidDeadOrAliveTarget(), LoadScripts(), prepare(), prepareDataForTriggerSystem(), PrepareTriggersExecutedOnHit(), Player::RestoreSpellMods(), SearchAreaTargets(), SearchChainTargets(), SearchNearbyTarget(), SearchSpellFocus(), SelectEffectImplicitTargets(), SelectEffectTypeImplicitTargets(), SelectExplicitTargets(), SelectImplicitAreaTargets(), SelectImplicitCasterDestTargets(), SelectImplicitChainTargets(), SelectImplicitChannelTargets(), SelectImplicitConeTargets(), SelectImplicitDestDestTargets(), SelectImplicitNearbyTargets(), SelectImplicitTargetDestTargets(), SelectImplicitTrajTargets(), SelectSpellTargets(), SendCastResult(), SendChannelStart(), SendInterrupted(), SendLogExecute(), SendPetCastResult(), SendResurrectRequest(), SendSpellCooldown(), SendSpellGo(), SendSpellStart(), SetSpellValue(), Spell(), SummonGuardian(), TakePower(), TakeReagents(), TakeRunePower(), TriggerGlobalCooldown(), update(), PetAI::UpdateAI(), UpdateChanneledTargetList(), Player::UpdatePotionCooldown(), and ~Spell().
|
protected |
Definition at line 592 of file Spell.h.
Referenced by DoAllEffectOnLaunchTarget(), DoAllEffectOnTarget(), and Spell().
|
protected |
Definition at line 749 of file Spell.h.
Referenced by cancel(), cast(), finish(), getState(), handle_immediate(), prepare(), setState(), Spell(), and update().
|
protected |
Definition at line 583 of file Spell.h.
Referenced by CalculateDamage(), DoSpellHitOnUnit(), EffectPersistentAA(), prepare(), SelectImplicitAreaTargets(), SelectImplicitConeTargets(), SetSpellValue(), Spell(), and ~Spell().
| SpellCastTargets Spell::m_targets |
Definition at line 535 of file Spell.h.
Referenced by _handle_immediate_phase(), cast(), CheckCast(), CheckDst(), CheckEffectTarget(), CheckItems(), CheckPetCast(), CheckRange(), CheckSrc(), DoAllEffectOnTarget(), EffectBind(), EffectChargeDest(), EffectEnchantItemPerm(), EffectJumpDest(), EffectKnockBack(), EffectLeap(), EffectPullTowards(), EffectScriptEffect(), EffectSummonChangeItem(), EffectSummonObject(), EffectSummonObjectWild(), EffectTeleportUnits(), EffectTransmitted(), EffectTriggerMissileSpell(), EffectTriggerSpell(), LuaSpell::GetTargetDest(), handle_delayed(), WorldSession::HandleAcceptTradeOpcode(), HandleHolyPower(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript(), WorldSession::HandleUpdateMissileTrajectory(), WorldSession::HandleUpdateProjectilePosition(), InitExplicitTargets(), prepare(), SelectEffectImplicitTargets(), SelectEffectTypeImplicitTargets(), SelectExplicitTargets(), SelectImplicitAreaTargets(), SelectImplicitCasterDestTargets(), SelectImplicitChannelTargets(), SelectImplicitDestDestTargets(), SelectImplicitNearbyTargets(), SelectImplicitTargetDestTargets(), SelectImplicitTargetObjectTargets(), SelectImplicitTrajTargets(), SelectSpellTargets(), SendChannelStart(), SendSpellGo(), SendSpellStart(), SummonGuardian(), TakeCastItem(), TakePower(), TakeReagents(), update(), and UpdatePointers().
|
protected |
Definition at line 750 of file Spell.h.
Referenced by Delayed(), DelayedChannel(), ReSetTimer(), SendChannelStart(), Spell(), and update().
|
protected |
Definition at line 757 of file Spell.h.
Referenced by _handle_immediate_phase(), CheckCast(), DoAllEffectOnTarget(), DoSpellHitOnUnit(), finish(), IsNeedSendToClient(), prepare(), SendSpellGo(), SendSpellStart(), Spell(), and TakePower().
|
protected |
Definition at line 681 of file Spell.h.
Referenced by AddGOTarget(), CleanupTargetList(), handle_delayed(), handle_immediate(), HaveTargetsForEffect(), SendChannelStart(), and SendSpellGo().
|
protected |
Definition at line 688 of file Spell.h.
Referenced by _handle_immediate_phase(), AddItemTarget(), CleanupTargetList(), and HaveTargetsForEffect().
|
protected |
Definition at line 671 of file Spell.h.
Referenced by _handle_immediate_phase(), AddUnitTarget(), CanAutoCast(), cancel(), CleanupTargetList(), DelayedChannel(), DoAllEffectOnLaunchTarget(), EffectDummy(), EffectSchoolDMG(), handle_delayed(), handle_immediate(), HandleHolyPower(), HandleLaunchPhase(), HandleThreatSpells(), HaveTargetsForEffect(), SelectImplicitAreaTargets(), SelectSpellTargets(), SendChannelStart(), SendSpellGo(), TakePower(), and UpdateChanneledTargetList().
|
protected |
Definition at line 626 of file Spell.h.
Referenced by CheckCast(), DoAllEffectOnTarget(), DoCreateItem(), DoSpellHitOnUnit(), EffectActivateSpec(), EffectAddComboPoints(), EffectAddExtraAttacks(), EffectApplyAreaAura(), EffectApplyAura(), EffectBind(), EffectCharge(), EffectCreateItem2(), EffectCreateRandomItem(), EffectCreateTamedPet(), EffectDamageFromMaxHealthPCT(), EffectDestroyItem(), EffectDiscoverTaxi(), EffectDismissPet(), EffectDispel(), EffectDispelMechanic(), EffectDistract(), EffectDualWield(), EffectDuel(), EffectDummy(), EffectDurabilityDamage(), EffectDurabilityDamagePCT(), EffectEnchantHeldItem(), EffectEnchantItemPerm(), EffectEnergize(), EffectEnergizePct(), EffectEnvironmentalDMG(), EffectForceCast(), EffectGiveCurrency(), EffectHeal(), EffectHealMaxHealth(), EffectHealMechanical(), EffectHealPct(), EffectHealthLeech(), EffectInebriate(), EffectInstaKill(), EffectInterruptCast(), EffectJump(), EffectKillCredit(), EffectKillCreditPersonal(), EffectKnockBack(), EffectLeap(), EffectLeapBack(), EffectLearnPetSpell(), EffectLearnSkill(), EffectLearnSpell(), EffectModifyThreatPercent(), EffectPickPocket(), EffectPlayMovie(), EffectPlayMusic(), EffectPlaySound(), EffectPowerBurn(), EffectPowerDrain(), EffectPullTowards(), EffectQuestClear(), EffectQuestComplete(), EffectQuestFail(), EffectQuestStart(), EffectRechargeManaGem(), EffectRedirectThreat(), EffectRemoveAura(), EffectRenamePet(), EffectReputation(), EffectResurrect(), EffectResurrectNew(), EffectResurrectWithAura(), EffectSanctuary(), EffectSchoolDMG(), EffectScriptEffect(), EffectSendEvent(), EffectSendTaxi(), EffectSkinning(), EffectSkinPlayerCorpse(), EffectSpecCount(), EffectStealBeneficialBuff(), EffectSummonPlayer(), EffectSummonRaFFriend(), EffectTameCreature(), EffectTaunt(), EffectTeleportUnits(), EffectTeleUnitsFaceCaster(), EffectThreat(), EffectTriggerMissileSpell(), EffectTriggerSpell(), EffectUnlearnSpecialization(), EffectUntrainTalents(), EffectWeaponDmg(), HandleEffects(), SearchChainTargets(), SelectEffectTypeImplicitTargets(), SelectImplicitAreaTargets(), SelectImplicitChainTargets(), SelectImplicitConeTargets(), SelectImplicitNearbyTargets(), SelectImplicitTrajTargets(), and Spell().