◆ PrepareSpellScript()
3870 {
3872 {
3873 std::list<Creature*> hatchling;
3875 if (!hatchling.empty())
3876 {
3878 }
3879 }
3880
3882 }
@ SPELL_FAILED_BAD_TARGETS
Definition SharedDefines.h:961
@ SPELL_CAST_OK
Definition SharedDefines.h:1138
Unit * GetCaster()
Definition SpellScript.cpp:401
@ NPC_VENOMHIDE_HATCHLING
Definition spell_item.cpp:3862
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 |
3885 {
3886 if (!target)
3887 {
3888 return;
3889 }
3890
3892 {
3893 std::list<Creature*> hatchling;
3895 if (hatchling.empty())
3896 {
3897 return;
3898 }
3899
3900 for (
Creature* creature : hatchling)
3901 {
3902 if (creature)
3903 {
3904 target = creature;
3905 return;
3906 }
3907 }
3908 }
3909 }
References SpellScript::GetCaster(), and NPC_VENOMHIDE_HATCHLING.
Referenced by Register().
The documentation for this class was generated from the following file: