From 740da85fd6c8348707e4d29ab51b3c2151d594d9 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Sun, 12 Apr 2009 00:15:01 +0200 Subject: *Rename boss_aminitar to boss_amanitar in instance Ahn'kahet. --HG-- branch : trunk rename : src/bindings/scripts/scripts/zone/Azjol-Nerub/ahnkahet/boss_aminitar.cpp => src/bindings/scripts/scripts/zone/Azjol-Nerub/ahnkahet/boss_amanitar.cpp --- src/bindings/scripts/CMakeLists.txt | 2 +- .../zone/Azjol-Nerub/ahnkahet/boss_amanitar.cpp | 79 ++++++++++++++++++++++ .../zone/Azjol-Nerub/ahnkahet/boss_aminitar.cpp | 79 ---------------------- 3 files changed, 80 insertions(+), 80 deletions(-) create mode 100644 src/bindings/scripts/scripts/zone/Azjol-Nerub/ahnkahet/boss_amanitar.cpp delete mode 100644 src/bindings/scripts/scripts/zone/Azjol-Nerub/ahnkahet/boss_aminitar.cpp (limited to 'src/bindings/scripts') diff --git a/src/bindings/scripts/CMakeLists.txt b/src/bindings/scripts/CMakeLists.txt index ea3a4f79a68..93b13037ff5 100644 --- a/src/bindings/scripts/CMakeLists.txt +++ b/src/bindings/scripts/CMakeLists.txt @@ -418,7 +418,7 @@ SET(trinityscript_LIB_SRCS scripts/zone/Azjol-Nerub/ahnkahet/boss_elder_nadox.cpp scripts/zone/Azjol-Nerub/ahnkahet/boss_jedoga_shadowseeker.cpp scripts/zone/Azjol-Nerub/ahnkahet/boss_herald_volazj.cpp - scripts/zone/Azjol-Nerub/ahnkahet/boss_aminitar.cpp + scripts/zone/Azjol-Nerub/ahnkahet/boss_amanitar.cpp scripts/zone/Azjol-Nerub/ahnkahet/def_ahnkahet.h scripts/zone/draktharon_keep/instance_drak_tharon_keep.cpp scripts/zone/draktharon_keep/boss_trollgore.cpp diff --git a/src/bindings/scripts/scripts/zone/Azjol-Nerub/ahnkahet/boss_amanitar.cpp b/src/bindings/scripts/scripts/zone/Azjol-Nerub/ahnkahet/boss_amanitar.cpp new file mode 100644 index 00000000000..9431880921c --- /dev/null +++ b/src/bindings/scripts/scripts/zone/Azjol-Nerub/ahnkahet/boss_amanitar.cpp @@ -0,0 +1,79 @@ +/* + * Copyright (C) 2009 Trinity + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* Script Data Start +SDName: boss_amanitar +SDAuthor: LordVanMartin +SD%Complete: 0 +SDComment: Only appears in heroic mode +SDCategory: Ahn'kahet +Script Data End */ + +/*** SQL START *** +update creature_template set scriptname = 'boss_amanitar' where entry = ''; +*** SQL END ***/ + +#include "precompiled.h" +#include "def_ahnkahet.h" + +#define SPELL_BASH 57094 +#define SPELL_ENTANGLING_ROOTS 57095 +#define SPELL_MINI 57055 +#define SPELL_VENOM_BOLT_VOLLEY 57088 + +struct TRINITY_DLL_DECL boss_amanitarAI : public ScriptedAI +{ + boss_amanitarAI(Creature *c) : ScriptedAI(c) {} + + void Reset() {} + + void Aggro(Unit* who) {} + void AttackStart(Unit* who) {} + void MoveInLineOfSight(Unit* who) {} + void UpdateAI(const uint32 diff) + { + //Return since we have no target + if(!UpdateVictim()) + return; + + DoMeleeAttackIfReady(); + } + + void JustDied(Unit* killer) {} + + void KilledUnit(Unit *victim) + { + if (victim == m_creature) + return; + } +}; + +CreatureAI* GetAI_boss_amanitar(Creature *_Creature) +{ + return new boss_amanitarAI (_Creature); +} + +void AddSC_boss_amanitar() +{ + Script *newscript; + + newscript = new Script; + newscript->Name="boss_amanitar"; + newscript->GetAI = GetAI_boss_amanitar; + newscript->RegisterSelf(); +} diff --git a/src/bindings/scripts/scripts/zone/Azjol-Nerub/ahnkahet/boss_aminitar.cpp b/src/bindings/scripts/scripts/zone/Azjol-Nerub/ahnkahet/boss_aminitar.cpp deleted file mode 100644 index 11332d0a383..00000000000 --- a/src/bindings/scripts/scripts/zone/Azjol-Nerub/ahnkahet/boss_aminitar.cpp +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2009 Trinity - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -/* Script Data Start -SDName: boss_aminitar -SDAuthor: LordVanMartin -SD%Complete: 0 -SDComment: Only appears in heroic mode -SDCategory: Ahn'kahet -Script Data End */ - -/*** SQL START *** -update creature_template set scriptname = 'boss_amanitar' where entry = ''; -*** SQL END ***/ - -#include "precompiled.h" -#include "def_ahnkahet.h" - -#define SPELL_BASH 57094 -#define SPELL_ENTANGLING_ROOTS 57095 -#define SPELL_MINI 57055 -#define SPELL_VENOM_BOLT_VOLLEY 57088 - -struct TRINITY_DLL_DECL boss_amanitarAI : public ScriptedAI -{ - boss_amanitarAI(Creature *c) : ScriptedAI(c) {} - - void Reset() {} - - void Aggro(Unit* who) {} - void AttackStart(Unit* who) {} - void MoveInLineOfSight(Unit* who) {} - void UpdateAI(const uint32 diff) - { - //Return since we have no target - if(!UpdateVictim()) - return; - - DoMeleeAttackIfReady(); - } - - void JustDied(Unit* killer) {} - - void KilledUnit(Unit *victim) - { - if (victim == m_creature) - return; - } -}; - -CreatureAI* GetAI_boss_amanitar(Creature *_Creature) -{ - return new boss_amanitarAI (_Creature); -} - -void AddSC_boss_amanitar() -{ - Script *newscript; - - newscript = new Script; - newscript->Name="boss_amanitar"; - newscript->GetAI = GetAI_boss_amanitar; - newscript->RegisterSelf(); -} -- cgit v1.2.3