mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 14:16:31 +00:00
refactor(Core/Game): restyle game lib with astyle (#3466)
This commit is contained in:
@@ -23,7 +23,7 @@ Totem::Totem(SummonPropertiesEntry const* properties, uint64 owner) : Minion(pro
|
||||
}
|
||||
|
||||
void Totem::Update(uint32 time)
|
||||
{
|
||||
{
|
||||
if (!GetOwner()->IsAlive() || !IsAlive())
|
||||
{
|
||||
UnSummon(); // remove self
|
||||
@@ -42,7 +42,7 @@ void Totem::Update(uint32 time)
|
||||
}
|
||||
|
||||
void Totem::InitStats(uint32 duration)
|
||||
{
|
||||
{
|
||||
// client requires SMSG_TOTEM_CREATED to be sent before adding to world and before removing old totem
|
||||
// Xinef: Set level for Unit totems
|
||||
if (Unit* owner = ObjectAccessor::FindUnit(m_owner))
|
||||
@@ -75,7 +75,7 @@ void Totem::InitStats(uint32 duration)
|
||||
}
|
||||
|
||||
void Totem::InitSummon()
|
||||
{
|
||||
{
|
||||
if (m_type == TOTEM_PASSIVE && GetSpell())
|
||||
CastSpell(this, GetSpell(), true);
|
||||
|
||||
@@ -94,7 +94,7 @@ void Totem::InitSummon()
|
||||
}
|
||||
|
||||
void Totem::UnSummon(uint32 msTime)
|
||||
{
|
||||
{
|
||||
if (msTime)
|
||||
{
|
||||
m_Events.AddEvent(new ForcedUnsummonDelayEvent(*this), m_Events.CalculateTime(msTime));
|
||||
@@ -104,7 +104,7 @@ void Totem::UnSummon(uint32 msTime)
|
||||
CombatStop();
|
||||
RemoveAurasDueToSpell(GetSpell(), GetGUID());
|
||||
|
||||
Unit *owner = GetOwner();
|
||||
Unit* owner = GetOwner();
|
||||
// clear owner's totem slot
|
||||
for (uint8 i = SUMMON_SLOT_TOTEM; i < MAX_TOTEM_SLOT; ++i)
|
||||
{
|
||||
@@ -144,13 +144,13 @@ void Totem::UnSummon(uint32 msTime)
|
||||
}
|
||||
|
||||
bool Totem::IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) const
|
||||
{
|
||||
{
|
||||
// xinef: immune to all positive spells, except of stoneclaw totem absorb and sentry totem bind sight
|
||||
// totems positive spells have unit_caster target
|
||||
if (spellInfo->Effects[index].Effect != SPELL_EFFECT_DUMMY &&
|
||||
spellInfo->Effects[index].Effect != SPELL_EFFECT_SCRIPT_EFFECT &&
|
||||
spellInfo->IsPositive() && spellInfo->Effects[index].TargetA.GetTarget() != TARGET_UNIT_CASTER &&
|
||||
spellInfo->Effects[index].TargetA.GetCheckType() != TARGET_CHECK_ENTRY && spellInfo->Id != 55277 && spellInfo->Id != 6277)
|
||||
if (spellInfo->Effects[index].Effect != SPELL_EFFECT_DUMMY &&
|
||||
spellInfo->Effects[index].Effect != SPELL_EFFECT_SCRIPT_EFFECT &&
|
||||
spellInfo->IsPositive() && spellInfo->Effects[index].TargetA.GetTarget() != TARGET_UNIT_CASTER &&
|
||||
spellInfo->Effects[index].TargetA.GetCheckType() != TARGET_CHECK_ENTRY && spellInfo->Id != 55277 && spellInfo->Id != 6277)
|
||||
return true;
|
||||
|
||||
switch (spellInfo->Effects[index].ApplyAuraName)
|
||||
|
||||
Reference in New Issue
Block a user