TrinityCore
boss_venoxis.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "zulgurub.h"
19#include "ScriptedCreature.h"
20#include "ScriptMgr.h"
21
23{
25 SAY_BLOODVENOM = 1, // ID - 96842 Venomous Effusion
26 SAY_TRANSFROM = 2, // ID - 97354 Blessing of the Snake God
27 SAY_WORD_OF_HETHISS = 3, // ID - 96560 Word of Hethiss
28 EMOTE_BLOODVENOM = 4, // ID - 96842 Bloodvenom
29 EMOTE_VENOM_WITHDRAWAL = 5, // ID - 96653 Venom Withdrawal
31 SAY_DEATH = 7
32};
33
35{
36};
37
39{
40};
41
42struct boss_venoxis : public BossAI
43{
44 boss_venoxis(Creature* creature) : BossAI(creature, DATA_VENOXIS) { }
45
46 void Reset() override
47 {
48 _Reset();
49 }
50
51 void JustDied(Unit* /*killer*/) override
52 {
53 _JustDied();
55 }
56
57 void JustEngagedWith(Unit* who) override
58 {
61 }
62
63 void KilledUnit(Unit* victim) override
64 {
65 if (victim->GetTypeId() == TYPEID_PLAYER)
67 }
68
69 void UpdateAI(uint32 diff) override
70 {
71 if (!UpdateVictim())
72 return;
73
74 events.Update(diff);
75
77 return;
78 /*
79 while (uint32 eventId = events.ExecuteEvent())
80 {
81 switch (eventId)
82 {
83 default:
84 break;
85 }
86
87 if (me->HasUnitState(UNIT_STATE_CASTING))
88 return;
89 }
90 */
91 }
92};
93
95{
97}
uint32_t uint32
Definition: Define.h:142
@ TYPEID_PLAYER
Definition: ObjectGuid.h:41
Spells
Definition: PlayerAI.cpp:32
@ UNIT_STATE_CASTING
Definition: Unit.h:270
Yells
@ SAY_DEATH
@ SAY_PLAYER_KILL
@ SAY_TRANSFROM
@ SAY_AGGRO
@ EMOTE_VENOM_WITHDRAWAL
@ EMOTE_BLOODVENOM
@ SAY_WORD_OF_HETHISS
@ SAY_BLOODVENOM
void AddSC_boss_venoxis()
void JustEngagedWith(Unit *who) override
EventMap events
void _JustDied()
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:56
bool UpdateVictim()
Definition: CreatureAI.cpp:245
Creature *const me
Definition: CreatureAI.h:61
void Update(uint32 time)
Definition: EventMap.h:56
TypeID GetTypeId() const
Definition: Object.h:173
Definition: Unit.h:627
bool HasUnitState(const uint32 f) const
Definition: Unit.h:732
void KilledUnit(Unit *victim) override
void JustEngagedWith(Unit *who) override
boss_venoxis(Creature *creature)
void Reset() override
void UpdateAI(uint32 diff) override
void JustDied(Unit *) override
#define RegisterZulGurubCreatureAI(ai_name)
Definition: zulgurub.h:98
@ DATA_VENOXIS
Definition: zulgurub.h:30