◆ PrepareSpellScript()
4136 {
4138 {
4139 std::list<Creature*> hatchling;
4141 if (!hatchling.empty())
4142 {
4144 }
4145 }
4146
4148 }
@ 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:4128
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 |
4151 {
4152 if (!target)
4153 {
4154 return;
4155 }
4156
4158 {
4159 std::list<Creature*> hatchling;
4161 if (hatchling.empty())
4162 {
4163 return;
4164 }
4165
4166 for (
Creature* creature : hatchling)
4167 {
4168 if (creature)
4169 {
4170 target = creature;
4171 return;
4172 }
4173 }
4174 }
4175 }
References SpellScript::GetCaster(), and NPC_VENOMHIDE_HATCHLING.
Referenced by Register().
The documentation for this class was generated from the following file: