AzeorthCore 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
 
- 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)
 
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
1844: CreatureScript("npc_alchemist_adrianna") { }
Definition: ScriptMgr.h:718

Member Function Documentation

◆ OnGossipHello()

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

Reimplemented from CreatureScript.

1847 {
1848 if (InstanceScript* instance = creature->GetInstanceScript())
1849 if (instance->GetBossState(DATA_ROTFACE) == DONE && instance->GetBossState(DATA_FESTERGUT) == DONE && !creature->FindCurrentSpellBySpellId(SPELL_HARVEST_BLIGHT_SPECIMEN) && !creature->FindCurrentSpellBySpellId(SPELL_HARVEST_BLIGHT_SPECIMEN25))
1851 creature->CastSpell(creature, SPELL_HARVEST_BLIGHT_SPECIMEN, false);
1852 return false;
1853 }
@ DONE
Definition: InstanceScript.h:59
@ SPELL_HARVEST_BLIGHT_SPECIMEN
Definition: icecrown_citadel.cpp:112
@ SPELL_HARVEST_BLIGHT_SPECIMEN25
Definition: icecrown_citadel.cpp:113
@ SPELL_GREEN_BLIGHT_RESIDUE
Definition: icecrown_citadel.h:60
@ SPELL_ORANGE_BLIGHT_RESIDUE
Definition: icecrown_citadel.h:59
@ DATA_ROTFACE
Definition: icecrown_citadel.h:96
@ DATA_FESTERGUT
Definition: icecrown_citadel.h:95
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
Spell * FindCurrentSpellBySpellId(uint32 spell_id) const
Definition: Unit.cpp:4072
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5598
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:1168
Definition: InstanceScript.h:140

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.