Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix (core): workflow warning fix #185

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ struct boss_morchok : public BossAI
oldOrientation = morchokDest.GetOrientation();
summon->SetMaxHealth(me->GetMaxHealth());
summon->SetHealth(me->GetHealth());
me->MovePosition(kohcromDest, 20.00f, -M_PI / 2);
me->MovePosition(morchokDest, 20.00f, M_PI / 2);
me->MovePosition(kohcromDest, 20.00f, static_cast<float>(-M_PI / 2));
me->MovePosition(morchokDest, 20.00f, static_cast<float>(M_PI / 2));
me->GetMotionMaster()->MoveJump(morchokDest, 20.00f, 10.00f);
summon->GetMotionMaster()->MoveJump(kohcromDest, 20.00f, 10.00f);
}
Expand Down Expand Up @@ -335,7 +335,7 @@ struct boss_morchok : public BossAI
case EVENT_RESONATING_CRYSTAL:
{
Talk(TALK_SUMMON_RESONATING_CRYSTAL);
float angle = frand(0.0f, 2.0f * M_PI);
float angle = frand(0.0f, 2.0f * static_cast<float>(M_PI));
float dist = frand(25.0f, 35.0f);
float tempAngle = me->NormalizeOrientation(angle);
Position pos(*me);
Expand Down Expand Up @@ -538,7 +538,7 @@ struct boss_kohcrom : public ScriptedAI
case EVENT_RESONATING_CRYSTAL:
{
Talk(TALK_SUMMON_RESONATING_CRYSTAL);
float angle = frand(0.0f, 2.0f * M_PI);
float angle = frand(0.0f, 2.0f * static_cast<float>(M_PI));
float dist = frand(30.0f, 40.0f);
float tempAngle = me->NormalizeOrientation(angle);
Position pos(*me);
Expand Down Expand Up @@ -847,7 +847,7 @@ class spell_ds_falling_fragments_periodic : public AuraScript
uint8 maxAttemps = 0;
while (maxAttemps < 20)
{
float angle = frand(0.0f, 2.0f * M_PI);
float angle = frand(0.0f, 2.0f * static_cast<float>(M_PI));
float tempAngle = Position::NormalizeOrientation(angle);
bool nearObject = false;
Position pos(*GetCaster());
Expand Down Expand Up @@ -877,7 +877,7 @@ class spell_ds_falling_fragments_periodic : public AuraScript
uint8 maxAttemps = 0;
while (maxAttemps < 20)
{
float angle = frand(0.0f, 2.0f * M_PI);
float angle = frand(0.0f, 2.0f * static_cast<float>(M_PI));
float tempAngle = Position::NormalizeOrientation(angle);
bool nearObject = false;
Position pos(*GetCaster());
Expand Down Expand Up @@ -972,7 +972,7 @@ class spell_ds_black_blood_of_the_earth_periodic : public AuraScript

if (Unit* caster = GetCaster())
{
float angle = frand(0.0f, 2.0f * M_PI);
float angle = frand(0.0f, 2.0f * static_cast<float>(M_PI));
float step = float(M_PI) / 16.0f;
for (uint8 i = 0; i < 32; ++i)
{
Expand Down
Loading