mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
chore(Core/AI): Convert the hardcoded variadic RAND functions into one C++11 variadic template version. (#2239)
This commit is contained in:
@@ -85,9 +85,9 @@ class spell_winter_wondervolt_trap : public SpellScriptLoader
|
||||
|
||||
uint32 spellId = 0;
|
||||
if (target->getGender() == GENDER_MALE)
|
||||
spellId = RAND<uint32>(SPELL_WINTER_WONDERVOLT_RED_MAN, SPELL_WINTER_WONDERVOLT_GREEN_MAN);
|
||||
spellId = RAND(SPELL_WINTER_WONDERVOLT_RED_MAN, SPELL_WINTER_WONDERVOLT_GREEN_MAN);
|
||||
else
|
||||
spellId = RAND<uint32>(SPELL_WINTER_WONDERVOLT_RED_WOMEN, SPELL_WINTER_WONDERVOLT_GREEN_WOMEN);
|
||||
spellId = RAND(SPELL_WINTER_WONDERVOLT_RED_WOMEN, SPELL_WINTER_WONDERVOLT_GREEN_WOMEN);
|
||||
|
||||
// cast
|
||||
target->CastSpell(target, spellId, true);
|
||||
|
||||
Reference in New Issue
Block a user