◆ PrepareSpellScript()
4141 {
4143 {
4144 std::list<Creature*> hatchling;
4146 if (!hatchling.empty())
4147 {
4149 }
4150 }
4151
4153 }
@ 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:4133
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 |
4156 {
4157 if (!target)
4158 {
4159 return;
4160 }
4161
4163 {
4164 std::list<Creature*> hatchling;
4166 if (hatchling.empty())
4167 {
4168 return;
4169 }
4170
4171 for (
Creature* creature : hatchling)
4172 {
4173 if (creature)
4174 {
4175 target = creature;
4176 return;
4177 }
4178 }
4179 }
4180 }
References SpellScript::GetCaster(), and NPC_VENOMHIDE_HATCHLING.
Referenced by Register().
The documentation for this class was generated from the following file: