feat(CI/Codestyle): added codestyle check (#3668)

This commit is contained in:
Kargatum
2021-01-09 17:59:50 +07:00
committed by GitHub
parent 57aa46244d
commit ea93a5c1a1
400 changed files with 238 additions and 748 deletions

View File

@@ -467,7 +467,6 @@ public:
minrange = summon->GetExactDist(p);
}
summon->ToTempSummon()->DespawnOrUnsummon(30000);
}
else

View File

@@ -43,7 +43,6 @@ enum Spells
SPELL_COLDFLAME_SUMMON = 69147,
};
enum Events
{
EVENT_ENABLE_BONE_SLICE = 1,

View File

@@ -1265,7 +1265,6 @@ public:
}
}
targets.remove_if(acore::UnitAuraCheck(true, sSpellMgr->GetSpellIdForDifficulty(SPELL_UNBOUND_PLAGUE, GetCaster())));
acore::Containers::RandomResizeList(targets, 1);
}

View File

@@ -856,7 +856,6 @@ public:
}
};
class npc_precious_icc : public CreatureScript
{
public:

View File

@@ -1225,7 +1225,6 @@ public:
unitList = targetList;
}
void Register() override
{
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_sindragosa_ice_tomb_SpellScript::FilterTargets, EFFECT_1, TARGET_UNIT_DEST_AREA_ENEMY);
@@ -1372,8 +1371,6 @@ public:
}
};
class npc_spinestalker : public CreatureScript
{
public:

View File

@@ -358,7 +358,6 @@ void SendPacketToPlayers(WorldPacket const* data, Unit* source)
player->GetSession()->SendPacket(data);
}
struct ShadowTrapLKTargetSelector : public acore::unary_function<Unit*, bool>
{
public:
@@ -385,8 +384,6 @@ private:
float _maxDist;
};
struct NonTankLKTargetSelector : public acore::unary_function<Unit*, bool>
{
public:
@@ -421,7 +418,6 @@ private:
uint32 _exclude2;
};
struct DefileTargetSelector : public acore::unary_function<Unit*, bool>
{
public:
@@ -612,7 +608,6 @@ private:
bool _reverse;
};
class boss_the_lich_king : public CreatureScript
{
public:
@@ -1459,7 +1454,6 @@ public:
}
break;
case EVENT_OUTRO_LK_TALK_1:
if (Creature* theLichKing = ObjectAccessor::GetCreature(*me, _instance->GetData64(DATA_THE_LICH_KING)))
{
@@ -1627,7 +1621,6 @@ public:
me->CastSpell((Unit*)NULL, SPELL_JUMP, false);
break;
default:
break;
}

View File

@@ -2346,7 +2346,6 @@ public:
}
};
// pussywizard below:
class spell_icc_web_wrap : public SpellScriptLoader
@@ -3462,7 +3461,6 @@ public:
events.ScheduleEvent(EVENT_SUMMON_BROODLING, 10000 + i * 350);
}
void SummonBroodling()
{
float dist = frand(18.0f, 39.0f);

View File

@@ -1607,7 +1607,6 @@ public:
<< ColdflameJetsState << ' ' << BloodQuickeningState << ' ' << BloodQuickeningMinutes << ' ' << WeeklyQuestId10 << ' ' << PutricideEventProgress << ' '
<< uint32(LichKingHeroicAvailable ? 1 : 0) << ' ' << BloodPrinceTrashCount << ' ' << uint32(IsBuffAvailable ? 1 : 0);
OUT_SAVE_INST_DATA_COMPLETE;
return saveStream.str();
}
@@ -1871,7 +1870,7 @@ public:
break;
}
}
void SetPositionTraps(GameObject* go)
{
std::vector<Position> trapPositions;