◆ PrepareSpellScript()
4106 {
4108 {
4109 std::list<Creature*> hatchling;
4111 if (!hatchling.empty())
4112 {
4114 }
4115 }
4116
4118 }
@ SPELL_FAILED_BAD_TARGETS
Definition SharedDefines.h:949
@ SPELL_CAST_OK
Definition SharedDefines.h:1126
Unit * GetCaster()
Definition SpellScript.cpp:401
@ NPC_VENOMHIDE_HATCHLING
Definition spell_item.cpp:4098
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 |
4121 {
4122 if (!target)
4123 {
4124 return;
4125 }
4126
4128 {
4129 std::list<Creature*> hatchling;
4131 if (hatchling.empty())
4132 {
4133 return;
4134 }
4135
4136 for (
Creature* creature : hatchling)
4137 {
4138 if (creature)
4139 {
4140 target = creature;
4141 return;
4142 }
4143 }
4144 }
4145 }
References SpellScript::GetCaster(), and NPC_VENOMHIDE_HATCHLING.
Referenced by Register().
The documentation for this class was generated from the following file: