◆ PrepareSpellScript()
4123 {
4125 {
4126 std::list<Creature*> hatchling;
4128 if (!hatchling.empty())
4129 {
4131 }
4132 }
4133
4135 }
@ 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:4115
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 |
4138 {
4139 if (!target)
4140 {
4141 return;
4142 }
4143
4145 {
4146 std::list<Creature*> hatchling;
4148 if (hatchling.empty())
4149 {
4150 return;
4151 }
4152
4153 for (
Creature* creature : hatchling)
4154 {
4155 if (creature)
4156 {
4157 target = creature;
4158 return;
4159 }
4160 }
4161 }
4162 }
References SpellScript::GetCaster(), and NPC_VENOMHIDE_HATCHLING.
Referenced by Register().
The documentation for this class was generated from the following file: