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

[3.3.5] Core/Spells: Fix Glyph of Arcane Shot #16622

Merged
merged 1 commit into from Feb 19, 2016
Merged

Conversation

P-Kito
Copy link
Contributor

@P-Kito P-Kito commented Feb 15, 2016

Takeover of #16531 with recommended changes.

Closes #16500 and #16531

(Thanks to https://github.com/Eliminationzx)

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @joschiwald, @Kandera and @Vincent-Michael to be potential reviewers


DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_hun_glyph_of_arcane_shot';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(56841,'spell_hun_glyph_of_arcane_shot');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix end of line


int32 mana = procSpell->CalcPowerCost(GetTarget(), procSpell->GetSchoolMask());
int32 basepoint = CalculatePct(mana, aurEff->GetAmount());
GetTarget()->CastCustomSpell(GetTarget(), SPELL_HUNTER_GLYPH_OF_ARCANE_SHOT, &basepoint, NULL, NULL, true, NULL, aurEff, GetCasterGUID());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some devs often complain about NULL
it is preferable to use nullptr

@P-Kito P-Kito force-pushed the 3.3.5 branch 2 times, most recently from 402b706 to 67873d0 Compare February 15, 2016 19:24
@@ -0,0 +1,7 @@
--
DELETE FROM `spell_proc_event` WHERE `entry`= 56841;
INSERT INTO `spell_proc_event` VALUES (56841, 0, 9, 2048, 2048, 2048, 256, 0, 0, 0, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hex looks better, and always add column names to insert querys

@P-Kito P-Kito force-pushed the 3.3.5 branch 2 times, most recently from 58962d6 to 6eaf66c Compare February 15, 2016 21:54
@P-Kito
Copy link
Contributor Author

P-Kito commented Feb 16, 2016

All suggestions have been applied, ready for merge. 👍

@joschiwald
Copy link
Contributor

there are some suggestions pending, you know

@joschiwald
Copy link
Contributor

who says?

@P-Kito
Copy link
Contributor Author

P-Kito commented Feb 18, 2016

Ready for merge

Shauren added a commit that referenced this pull request Feb 19, 2016
[3.3.5] Core/Spells: Fix Glyph of Arcane Shot
@Shauren Shauren merged commit 2ee36fa into TrinityCore:3.3.5 Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants