refactor(Scripts/Events): code cleanup (part 6) (#6924)
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
// Scripted by Xinef
|
/*
|
||||||
|
* Originally written by Xinef - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
|
||||||
|
*/
|
||||||
|
|
||||||
#include "CellImpl.h"
|
#include "CellImpl.h"
|
||||||
#include "GameEventMgr.h"
|
#include "GameEventMgr.h"
|
||||||
@@ -1206,8 +1208,10 @@ public:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// just walking, fatiuge handling
|
// just walking, fatiuge handling
|
||||||
if (Aura* aur = caster->GetAura(SPELL_RAM_FATIGUE))
|
if (Aura* fatigueAura = caster->GetAura(SPELL_RAM_FATIGUE))
|
||||||
aur->ModStackAmount(-4);
|
{
|
||||||
|
fatigueAura->ModStackAmount(-4);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
// One click to maintain speed, more to increase
|
// One click to maintain speed, more to increase
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
// Scripted by Xinef
|
/*
|
||||||
|
* Originally written by Xinef - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
|
||||||
|
*/
|
||||||
|
|
||||||
#include "CellImpl.h"
|
#include "CellImpl.h"
|
||||||
#include "GossipDef.h"
|
#include "GossipDef.h"
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
// Scripted by Xinef
|
/*
|
||||||
|
* Originally written by Xinef - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
|
||||||
|
*/
|
||||||
|
|
||||||
#include "Cell.h"
|
#include "Cell.h"
|
||||||
#include "CellImpl.h"
|
#include "CellImpl.h"
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
// Scripted by Xinef
|
/*
|
||||||
|
* Originally written by Xinef - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
|
||||||
|
*/
|
||||||
|
|
||||||
#include "Player.h"
|
#include "Player.h"
|
||||||
#include "ScriptedCreature.h"
|
#include "ScriptedCreature.h"
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
// Scripted by Xinef
|
/*
|
||||||
|
* Originally written by Xinef - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
|
||||||
|
*/
|
||||||
|
|
||||||
#include "CombatAI.h"
|
#include "CombatAI.h"
|
||||||
#include "PassiveAI.h"
|
#include "PassiveAI.h"
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
// Scripted by Xinef
|
/*
|
||||||
|
* Originally written by Xinef - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
|
||||||
|
*/
|
||||||
|
|
||||||
#include "GameEventMgr.h"
|
#include "GameEventMgr.h"
|
||||||
#include "Player.h"
|
#include "Player.h"
|
||||||
@@ -83,11 +85,9 @@ public:
|
|||||||
if (target->HasAuraType(SPELL_AURA_TRANSFORM))
|
if (target->HasAuraType(SPELL_AURA_TRANSFORM))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uint32 spellId = 0;
|
uint32 spellId = target->getGender() == GENDER_MALE
|
||||||
if (target->getGender() == GENDER_MALE)
|
? RAND(SPELL_WINTER_WONDERVOLT_RED_MAN, SPELL_WINTER_WONDERVOLT_GREEN_MAN)
|
||||||
spellId = RAND(SPELL_WINTER_WONDERVOLT_RED_MAN, SPELL_WINTER_WONDERVOLT_GREEN_MAN);
|
: RAND(SPELL_WINTER_WONDERVOLT_RED_WOMEN, SPELL_WINTER_WONDERVOLT_GREEN_WOMEN);
|
||||||
else
|
|
||||||
spellId = RAND(SPELL_WINTER_WONDERVOLT_RED_WOMEN, SPELL_WINTER_WONDERVOLT_GREEN_WOMEN);
|
|
||||||
|
|
||||||
// cast
|
// cast
|
||||||
target->CastSpell(target, spellId, true);
|
target->CastSpell(target, spellId, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user