Scripts: Reorder file names in Commands/CMakeList file and cosmetic changes in all scripts
This commit is contained in:
1 parent
d12bb4a657
commit
6fd41ae50e
372 files changed
+1974
-1968
No files matched your search
@@ -81,7 +81,7 @@ class spell_mage_cold_snap : public SpellScriptLoader
|
||||
PrepareSpellScript(spell_mage_cold_snap_SpellScript)
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
Unit *caster = GetCaster();
|
||||
Unit* caster = GetCaster();
|
||||
|
||||
if (caster->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
@@ -137,7 +137,7 @@ class spell_mage_polymorph_cast_visual : public SpellScriptLoader
|
||||
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Unit *unitTarget = GetHitUnit())
|
||||
if (Unit* unitTarget = GetHitUnit())
|
||||
if (unitTarget->GetTypeId() == TYPEID_UNIT)
|
||||
unitTarget->CastSpell(unitTarget, spell_list[urand(0, 5)], true);
|
||||
}
|
||||
@@ -186,7 +186,7 @@ class spell_mage_summon_water_elemental : public SpellScriptLoader
|
||||
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Unit *unitTarget = GetHitUnit())
|
||||
if (Unit* unitTarget = GetHitUnit())
|
||||
{
|
||||
// Glyph of Eternal Water
|
||||
if (unitTarget->HasAura(SPELL_MAGE_GLYPH_OF_ETERNAL_WATER))
|
||||
|
||||
Reference in new issue
Block a user