◆ PrepareSpellScript()
3869 {
3871 {
3872 std::list<Creature*> hatchling;
3874 if (!hatchling.empty())
3875 {
3877 }
3878 }
3879
3881 }
@ 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:3861
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 |
3884 {
3885 if (!target)
3886 {
3887 return;
3888 }
3889
3891 {
3892 std::list<Creature*> hatchling;
3894 if (hatchling.empty())
3895 {
3896 return;
3897 }
3898
3899 for (
Creature* creature : hatchling)
3900 {
3901 if (creature)
3902 {
3903 target = creature;
3904 return;
3905 }
3906 }
3907 }
3908 }
References SpellScript::GetCaster(), and NPC_VENOMHIDE_HATCHLING.
Referenced by Register().
The documentation for this class was generated from the following file: