1244 if (saBounds.first != saBounds.second)
1249 for (SpellAreaForAreaMap::const_iterator itr = saBounds.first; itr != saBounds.second; ++itr)
1252 if (!itr->second->IsFitToRequirements(target->
ToPlayer(), zone, area))
1255 else if (itr->second->autocast)
1257 if (!target->
HasAura(itr->second->spellId))
1258 target->
CastSpell(target, itr->second->spellId,
true);
1271 for (std::vector<int32>::const_iterator itr = spellTriggered->begin(); itr != spellTriggered->end(); ++itr)
1276 caster->
AddAura(*itr, target);
1283 if (std::vector<int32>
const* spellTriggered =
sSpellMgr->GetSpellLinked(-(
int32)
GetId()))
1285 for (std::vector<int32>::const_iterator itr = spellTriggered->begin(); itr != spellTriggered->end(); ++itr)
1295 for (std::vector<int32>::const_iterator itr = spellTriggered->begin(); itr != spellTriggered->end(); ++itr)
1310 for (std::vector<int32>::const_iterator itr = spellTriggered->begin(); itr != spellTriggered->end(); ++itr)
1313 triggeredAura->ModStackAmount(
GetStackAmount() - triggeredAura->GetStackAmount());
1369 switch (aurEff->GetId())
1371 case 31571: spellId = 57529;
break;
1372 case 31572: spellId = 57531;
break;
1374 TC_LOG_ERROR(
"spells",
"Aura::HandleAuraSpecificMods: Unknown rank of Arcane Potency (%d) found", aurEff->GetId());
1377 caster->
CastSpell(caster, spellId,
true);
1463 switch (aurEff->GetId())
1465 case 53759: spellId = 60947;
break;
1466 case 53754: spellId = 60946;
break;
1468 TC_LOG_ERROR(
"spells",
"Aura::HandleAuraSpecificMods: Unknown rank of Improved Fear (%d) found", aurEff->GetId());
1471 caster->
CastSpell(target, spellId,
true);
1499 if (
AuraEffect const* aurEff = aura->GetEffect(0))
1501 float multiplier = float(aurEff->GetAmount());
1510 if (
GetId() == 1784)
1538 if (caster && caster->
HasAura(56845))
1555 if (owner->HasAura(34692))
1558 owner->CastSpell(owner, 34471,
true, 0,
GetEffect(0));
1560 owner->RemoveAurasDueToSpell(34471);
Definition: SpellAuraEffects.h:30
SpellInfo const * GetSpellInfo() const
Definition: SpellAuras.h:130
Definition: SharedDefines.h:4633
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
Definition: Unit.cpp:4240
int32 GetTotalTicks() const
Definition: SpellAuraEffects.h:84
void AddCooldown(uint32 spellId, uint32 itemId, std::chrono::duration< Type, Period > cooldownDuration)
Definition: SpellHistory.h:95
Definition: SharedDefines.h:1866
SpellInfo const *const m_spellInfo
Definition: SpellAuras.h:296
Definition: SharedDefines.h:172
void RemoveAurasWithFamily(SpellFamilyNames family, flag128 const &familyFlag, ObjectGuid casterGUID)
Definition: Unit.cpp:3847
Definition: SharedDefines.h:28
Aura * GetAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
Definition: Unit.cpp:4151
flag128 SpellFamilyFlags
Definition: SpellInfo.h:397
Aura * AddAura(uint32 spellId, Unit *target)
Definition: Unit.cpp:14463
Unit * GetUnitOwner() const
Definition: SpellAuras.h:138
Definition: SharedDefines.h:4638
arena_t NULL
Definition: jemalloc_internal.h:624
void ApplySpellImmune(uint32 spellId, uint32 op, uint32 type, bool apply)
Definition: Unit.cpp:9615
Aura * GetAuraOfRankedSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
Definition: Unit.cpp:4169
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3442
Definition: SharedDefines.h:4628
float seconds()
Definition: units.h:97
SpellEffectInfo const * GetSpellEffectInfo(uint32 index) const
Definition: SpellAuras.cpp:396
void apply(T *val)
Definition: ByteConverter.h:41
Definition: SharedDefines.h:4632
Player * ToPlayer()
Definition: Object.h:191
uint32 SpellDamageBonusDone(Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, SpellEffectInfo const *effect, uint32 stack=1) const
Definition: Unit.cpp:8212
TypeID GetTypeId() const
Definition: Object.h:113
AuraEffect * GetDummyAuraEffect(SpellFamilyNames name, uint32 iconId, uint8 effIndex) const
Definition: Unit.cpp:4127
Definition: SharedDefines.h:4626
SpellHistory * GetSpellHistory()
Definition: Unit.h:1926
AuraEffect * GetEffect(uint32 index) const
Definition: SpellAuras.cpp:448
uint32 SpellFamilyName
Definition: SpellInfo.h:396
Definition: SpellAuraDefines.h:286
Definition: SharedDefines.h:4629
Definition: SharedDefines.h:4631
int32 GetAmount() const
Definition: SpellAuraEffects.h:55
uint32 SpellDamageBonusTaken(Unit *caster, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, SpellEffectInfo const *effect, uint32 stack=1) const
Definition: Unit.cpp:8493
#define sSpellMgr
Definition: SpellMgr.h:756
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
Definition: SharedDefines.h:4630
T CalculatePct(T base, U pct)
Definition: Util.h:92
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3586
ObjectGuid GetTarget() const
Definition: Unit.h:2209
ObjectGuid const & GetGUID() const
Definition: Object.h:105
void ResetCooldown(uint32 spellId, bool update=false)
Definition: SpellHistory.cpp:549
Definition: ObjectGuid.h:33
void GetZoneAndAreaId(uint32 &zoneid, uint32 &areaid) const
Definition: Object.cpp:1535
Definition: SharedDefines.h:4623
bool HasCooldown(SpellInfo const *spellInfo, uint32 itemId=0, bool ignoreCategoryCooldown=false) const
Definition: SpellHistory.cpp:591
Unit * GetOwner() const
Definition: Unit.cpp:7542
uint8 GetStackAmount() const
Definition: SpellAuras.h:179
AuraRemoveMode
Definition: Unit.h:448
int32_t int32
Definition: g3dmath.h:167
uint32 GetRemainingCooldown(SpellInfo const *spellInfo) const
Definition: SpellHistory.cpp:612
Definition: SpellAuraDefines.h:64
AuraEffect * GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID=ObjectGuid::Empty) const
Definition: Unit.cpp:4071
std::pair< SpellAreaForAreaMap::const_iterator, SpellAreaForAreaMap::const_iterator > SpellAreaForAreaMapBounds
Definition: SpellMgr.h:504
int32 GetMaxPower(Powers power) const
Definition: Unit.cpp:11598
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
Definition: SpellAuras.h:116
void CombatStop(bool includingCast=false)
Definition: Unit.cpp:7371
ObjectGuid GetCasterGUID() const
Definition: SpellAuras.h:135
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869
float SpellDamagePctDone(Unit *victim, SpellInfo const *spellProto, DamageEffectType damagetype) const
Definition: Unit.cpp:8301
void CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:920
Definition: SharedDefines.h:248
Definition: SpellMgr.h:101
uint32 GetId() const
Definition: SpellAuras.h:131