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
Core/Spells Add support for quest Torch Tossing/More Torch Tossing #14776
Conversation
|
||
class spell_midsummer_braziers_hit_AuraScript : public AuraScript | ||
{ | ||
PrepareAuraScript(spell_midsummer_braziers_hit_AuraScript); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot Validate() there. It has been standard for most scripts and we should keep it that way imo.
Good job though 👍 |
110b492
to
4401d0b
Compare
player->CastSpell(player, SPELL_TORCH_TOSSING_TRAINING_SUCCESS_ALLIANCE, true); | ||
else if (player->GetTeam() == HORDE) | ||
player->CastSpell(player, SPELL_TORCH_TOSSING_TRAINING_SUCCESS_HORDE, true); | ||
player->RemoveAura(SPELL_BRAZIERS_HIT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just do Remove()
@@ -0,0 +1,2 @@ | |||
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
INSERT INTO queries need a DELETE FROM query first to avoid errors. Insert the following line as a new line 1:
DELETE FROM `spell_script_names` WHERE `spell_id`= 45724 AND `ScriptName`= 'spell_midsummer_braziers_hit';
This will make it possible to run the SQL more than one time and avoid errors on subsequent executions.
@joschiwald: is this ready? |
Core/Spells Add support for quest Torch Tossing/More Torch Tossing
Merge pull request #14776 from sirikfoll/SpellMidsummer Core/Spells Add support for quest Torch Tossing/More Torch Tossing (cherry picked from commit 8197467) by sirikfoll --- Rename 2015_08_29_00_world.sql to 2015_06_23_01_world.sql (cherry picked from commit 352703e) by MitchesD --- Scripts/Spells: fix codestyle thanks @whoami (cherry picked from commit 0cba555) by MitchesD
Updates #6879