◆ PrepareSpellScript()
3914 {
3916 {
3917 std::list<Creature*> hatchling;
3919 if (!hatchling.empty())
3920 {
3922 }
3923 }
3924
3926 }
@ SPELL_FAILED_BAD_TARGETS
Definition SharedDefines.h:972
@ SPELL_CAST_OK
Definition SharedDefines.h:1149
Unit * GetCaster()
Definition SpellScript.cpp:401
@ NPC_VENOMHIDE_HATCHLING
Definition spell_item.cpp:3906
References SpellScript::GetCaster(), NPC_VENOMHIDE_HATCHLING, SPELL_CAST_OK, and SPELL_FAILED_BAD_TARGETS.
◆ Register()
void spell_item_venomhide_feed::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ UpdateTarget()
void spell_item_venomhide_feed::UpdateTarget |
( |
WorldObject *& |
target | ) |
|
|
inlineprivate |
3929 {
3930 if (!target)
3931 {
3932 return;
3933 }
3934
3936 {
3937 std::list<Creature*> hatchling;
3939 if (hatchling.empty())
3940 {
3941 return;
3942 }
3943
3944 for (
Creature* creature : hatchling)
3945 {
3946 if (creature)
3947 {
3948 target = creature;
3949 return;
3950 }
3951 }
3952 }
3953 }
References SpellScript::GetCaster(), and NPC_VENOMHIDE_HATCHLING.
Referenced by Register().
The documentation for this class was generated from the following file: