AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
boss_amanitar.cpp File Reference
#include "CreatureScript.h"
#include "Player.h"
#include "ScriptedCreature.h"
#include "SpellScript.h"
#include "SpellScriptLoader.h"
#include "ahnkahet.h"

Go to the source code of this file.

Classes

struct  boss_amanitar
 
struct  npc_amanitar_mushrooms
 
class  spell_amanitar_remove_mushroom_power
 

Enumerations

enum  Spells {
  SPELL_BASH = 57094 ,
  SPELL_ENTANGLING_ROOTS = 57095 ,
  SPELL_MINI = 57055 ,
  SPELL_VENOM_BOLT_VOLLEY = 57088 ,
  SPELL_REMOVE_MUSHROOM_POWER = 57283 ,
  SPELL_HEALTHY_MUSHROOM_POTENT_FUNGUS = 56648 ,
  SPELL_POISONOUS_MUSHROOM_POISON_CLOUD = 57061 ,
  SPELL_POISONOUS_MUSHROOM_VISUAL_AURA = 56741 ,
  SPELL_POISONOUS_MUSHROOM_VISUAL_AREA = 61566 ,
  SPELL_HEALTHY_MUSHROOM_VISUAL_AURA = 56740 ,
  SPELL_PUTRID_MUSHROOM = 31690 ,
  SPELL_GROW = 57059 ,
  SPELL_SHRINK = 31691
}
 
enum  Creatures {
  NPC_HEALTHY_MUSHROOM = 30391 ,
  NPC_POISONOUS_MUSHROOM = 30435
}
 
enum  Events {
  EVENT_RESPAWN = 1 ,
  EVENT_ROOTS ,
  EVENT_BASH ,
  EVENT_BOLT ,
  EVENT_REMOVE_MUSHROOM_POWER ,
  EVENT_MINI ,
  EVENT_GROW ,
  EVENT_CHECK_PLAYER ,
  EVENT_KILLSELF
}
 

Functions

void AddSC_boss_amanitar ()
 

Variables

constexpr uint8 MAX_MUSHROOMS_COUNT = 32
 
Position const MushroomPositions [MAX_MUSHROOMS_COUNT]
 

Enumeration Type Documentation

◆ Creatures

enum Creatures
Enumerator
NPC_HEALTHY_MUSHROOM 
NPC_POISONOUS_MUSHROOM 
45{
48};
@ NPC_HEALTHY_MUSHROOM
Definition boss_amanitar.cpp:46
@ NPC_POISONOUS_MUSHROOM
Definition boss_amanitar.cpp:47

◆ Events

enum Events
Enumerator
EVENT_RESPAWN 
EVENT_ROOTS 
EVENT_BASH 
EVENT_BOLT 
EVENT_REMOVE_MUSHROOM_POWER 
EVENT_MINI 
EVENT_GROW 
EVENT_CHECK_PLAYER 
EVENT_KILLSELF 
51{
52 // Boss
53 EVENT_RESPAWN = 1,
59
60 // Mushroom
64};
@ EVENT_KILLSELF
Definition boss_amanitar.cpp:63
@ EVENT_CHECK_PLAYER
Definition boss_amanitar.cpp:62
@ EVENT_GROW
Definition boss_amanitar.cpp:61
@ EVENT_MINI
Definition boss_amanitar.cpp:58
@ EVENT_BOLT
Definition boss_amanitar.cpp:56
@ EVENT_BASH
Definition boss_amanitar.cpp:55
@ EVENT_REMOVE_MUSHROOM_POWER
Definition boss_amanitar.cpp:57
@ EVENT_ROOTS
Definition boss_amanitar.cpp:54
@ EVENT_RESPAWN
Definition boss_amanitar.cpp:53

◆ Spells

enum Spells
Enumerator
SPELL_BASH 
SPELL_ENTANGLING_ROOTS 
SPELL_MINI 
SPELL_VENOM_BOLT_VOLLEY 
SPELL_REMOVE_MUSHROOM_POWER 
SPELL_HEALTHY_MUSHROOM_POTENT_FUNGUS 
SPELL_POISONOUS_MUSHROOM_POISON_CLOUD 
SPELL_POISONOUS_MUSHROOM_VISUAL_AURA 
SPELL_POISONOUS_MUSHROOM_VISUAL_AREA 
SPELL_HEALTHY_MUSHROOM_VISUAL_AURA 
SPELL_PUTRID_MUSHROOM 
SPELL_GROW 
SPELL_SHRINK 
26{
27 SPELL_BASH = 57094,
29 SPELL_MINI = 57055,
32
33 // Mushroom
40 SPELL_GROW = 57059,
41 SPELL_SHRINK = 31691,
42};
@ SPELL_SHRINK
Definition boss_amanitar.cpp:41
@ SPELL_HEALTHY_MUSHROOM_VISUAL_AURA
Definition boss_amanitar.cpp:38
@ SPELL_MINI
Definition boss_amanitar.cpp:29
@ SPELL_VENOM_BOLT_VOLLEY
Definition boss_amanitar.cpp:30
@ SPELL_ENTANGLING_ROOTS
Definition boss_amanitar.cpp:28
@ SPELL_BASH
Definition boss_amanitar.cpp:27
@ SPELL_REMOVE_MUSHROOM_POWER
Definition boss_amanitar.cpp:31
@ SPELL_POISONOUS_MUSHROOM_POISON_CLOUD
Definition boss_amanitar.cpp:35
@ SPELL_POISONOUS_MUSHROOM_VISUAL_AREA
Definition boss_amanitar.cpp:37
@ SPELL_HEALTHY_MUSHROOM_POTENT_FUNGUS
Definition boss_amanitar.cpp:34
@ SPELL_POISONOUS_MUSHROOM_VISUAL_AURA
Definition boss_amanitar.cpp:36
@ SPELL_GROW
Definition boss_amanitar.cpp:40
@ SPELL_PUTRID_MUSHROOM
Definition boss_amanitar.cpp:39

Function Documentation

◆ AddSC_boss_amanitar()

void AddSC_boss_amanitar ( )
346{
349
350 // Spells
352}
#define RegisterSpellScript(spell_script)
Definition SpellScriptLoader.h:88
#define RegisterAhnKahetCreatureAI(ai_name)
Definition ahnkahet.h:85
Definition boss_amanitar.cpp:328
Definition boss_amanitar.cpp:104
Definition boss_amanitar.cpp:235

References RegisterAhnKahetCreatureAI, and RegisterSpellScript.

Referenced by AddNorthrendScripts().

Variable Documentation

◆ MAX_MUSHROOMS_COUNT

constexpr uint8 MAX_MUSHROOMS_COUNT = 32
constexpr

◆ MushroomPositions

Position const MushroomPositions[MAX_MUSHROOMS_COUNT]
68{
69 { 373.4807f, -856.5301f, -74.30518f, 0.2094395f },
70 { 358.4792f, -879.3193f, -75.9463f, 5.166174f },
71 { 356.5531f, -846.3022f, -72.1796f, 3.193953f },
72 { 332.369f, -846.081f, -74.30516f, 4.834562f },
73 { 360.2234f, -862.055f, -75.22755f, 1.658063f },
74 { 351.7189f, -890.9619f, -76.54617f, 1.064651f },
75 { 345.8126f, -869.1772f, -77.17728f, 1.361357f },
76 { 367.5179f, -884.0129f, -77.32881f, 4.276057f },
77 { 370.6044f, -868.4305f, -74.19881f, 0.8901179f },
78 { 381.3156f, -873.2377f, -74.82656f, 1.099557f },
79 { 371.5869f, -873.8141f, -74.72424f, 1.082104f },
80 { 340.4079f, -891.6375f, -74.99128f, 1.134464f },
81 { 368.21f, -851.5953f, -73.99741f, 4.694936f },
82 { 328.7047f, -853.9812f, -75.51253f, 0.5759587f },
83 { 366.4145f, -876.39f, -75.52739f, 5.253441f },
84 { 380.1362f, -861.4344f, -73.45917f, 3.787364f },
85 { 373.3007f, -888.8057f, -79.03593f, 5.602507f },
86 { 348.3599f, -848.0839f, -73.54117f, 1.745329f },
87 { 352.5586f, -882.6624f, -75.68202f, 3.822271f },
88 { 357.8967f, -871.179f, -75.77553f, 2.443461f },
89 { 360.1034f, -842.3351f, -71.08852f, 4.34587f },
90 { 348.1334f, -861.5244f, -74.61307f, 2.565634f },
91 { 401.4896f, -866.7059f, -73.22395f, 0.8901179f },
92 { 360.1683f, -889.1515f, -76.74798f, 3.612832f },
93 { 350.1828f, -907.7313f, -74.94678f, 5.044002f },
94 { 340.6278f, -856.5973f, -74.23862f, 4.415683f },
95 { 366.4849f, -859.7621f, -74.82679f, 1.500983f },
96 { 359.1482f, -853.3346f, -74.47543f, 5.654867f },
97 { 374.9992f, -879.0921f, -75.56115f, 1.867502f },
98 { 339.5252f, -850.4612f, -74.45442f, 4.764749f },
99 { 337.0534f, -864.002f, -75.72749f, 4.642576f },
100 { 398.2797f, -851.8694f, -68.84419f, 0.5759587f }
101};

Referenced by boss_amanitar::ExecuteEvent().