◆ PrepareSpellScript()
3954 {
3956 {
3957 std::list<Creature*> hatchling;
3959 if (!hatchling.empty())
3960 {
3962 }
3963 }
3964
3966 }
@ 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:3946
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 |
3969 {
3970 if (!target)
3971 {
3972 return;
3973 }
3974
3976 {
3977 std::list<Creature*> hatchling;
3979 if (hatchling.empty())
3980 {
3981 return;
3982 }
3983
3984 for (
Creature* creature : hatchling)
3985 {
3986 if (creature)
3987 {
3988 target = creature;
3989 return;
3990 }
3991 }
3992 }
3993 }
References SpellScript::GetCaster(), and NPC_VENOMHIDE_HATCHLING.
Referenced by Register().
The documentation for this class was generated from the following file: