AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
npc_alchemist_adrianna Class Reference
Inheritance diagram for npc_alchemist_adrianna:
CreatureScript ScriptObject UpdatableScript< Creature >

Public Member Functions

 npc_alchemist_adrianna ()
 
bool OnGossipHello (Player *player, Creature *creature) override
 
- Public Member Functions inherited from CreatureScript
bool IsDatabaseBound () const override
 
virtual bool OnGossipHello (Player *, Creature *)
 
virtual bool OnGossipSelect (Player *, Creature *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, Creature *, uint32, uint32, const char *)
 
virtual bool OnQuestAccept (Player *, Creature *, Quest const *)
 
virtual bool OnQuestSelect (Player *, Creature *, Quest const *)
 
virtual bool OnQuestComplete (Player *, Creature *, Quest const *)
 
virtual bool OnQuestReward (Player *, Creature *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, Creature *)
 
virtual CreatureAIGetAI (Creature *) const
 
virtual void OnFfaPvpStateUpdate (Creature *, bool)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 
- Public Member Functions inherited from UpdatableScript< Creature >
virtual void OnUpdate (Creature *, uint32)
 

Additional Inherited Members

- Protected Member Functions inherited from CreatureScript
 CreatureScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< Creature >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_alchemist_adrianna()

npc_alchemist_adrianna::npc_alchemist_adrianna ( )
inline
1832: CreatureScript("npc_alchemist_adrianna") { }
Definition: CreatureScript.h:25

Member Function Documentation

◆ OnGossipHello()

bool npc_alchemist_adrianna::OnGossipHello ( Player player,
Creature creature 
)
inlineoverridevirtual

Reimplemented from CreatureScript.

1835 {
1836 if (InstanceScript* instance = creature->GetInstanceScript())
1837 if (instance->GetBossState(DATA_ROTFACE) == DONE && instance->GetBossState(DATA_FESTERGUT) == DONE && !creature->FindCurrentSpellBySpellId(SPELL_HARVEST_BLIGHT_SPECIMEN) && !creature->FindCurrentSpellBySpellId(SPELL_HARVEST_BLIGHT_SPECIMEN25))
1839 creature->CastSpell(creature, SPELL_HARVEST_BLIGHT_SPECIMEN, false);
1840 return false;
1841 }
@ SPELL_HARVEST_BLIGHT_SPECIMEN
Definition: icecrown_citadel.cpp:114
@ SPELL_HARVEST_BLIGHT_SPECIMEN25
Definition: icecrown_citadel.cpp:115
@ SPELL_GREEN_BLIGHT_RESIDUE
Definition: icecrown_citadel.h:55
@ SPELL_ORANGE_BLIGHT_RESIDUE
Definition: icecrown_citadel.h:54
@ DATA_ROTFACE
Definition: icecrown_citadel.h:91
@ DATA_FESTERGUT
Definition: icecrown_citadel.h:90
@ DONE
Definition: InstanceScript.h:60
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
Spell * FindCurrentSpellBySpellId(uint32 spell_id) const
Definition: Unit.cpp:4144
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5698
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1167
Definition: InstanceScript.h:142

References Unit::CastSpell(), DATA_FESTERGUT, DATA_ROTFACE, DONE, Unit::FindCurrentSpellBySpellId(), WorldObject::GetInstanceScript(), Unit::HasAura(), SPELL_GREEN_BLIGHT_RESIDUE, SPELL_HARVEST_BLIGHT_SPECIMEN, SPELL_HARVEST_BLIGHT_SPECIMEN25, and SPELL_ORANGE_BLIGHT_RESIDUE.