◆ PrepareSpellScript()
4132 {
4134 {
4135 std::list<Creature*> hatchling;
4137 if (!hatchling.empty())
4138 {
4140 }
4141 }
4142
4144 }
@ 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:4124
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 |
4147 {
4148 if (!target)
4149 {
4150 return;
4151 }
4152
4154 {
4155 std::list<Creature*> hatchling;
4157 if (hatchling.empty())
4158 {
4159 return;
4160 }
4161
4162 for (
Creature* creature : hatchling)
4163 {
4164 if (creature)
4165 {
4166 target = creature;
4167 return;
4168 }
4169 }
4170 }
4171 }
References SpellScript::GetCaster(), and NPC_VENOMHIDE_HATCHLING.
Referenced by Register().
The documentation for this class was generated from the following file: