◆ PrepareSpellScript()
4119 {
4121 {
4122 std::list<Creature*> hatchling;
4124 if (!hatchling.empty())
4125 {
4127 }
4128 }
4129
4131 }
@ 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:4111
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 |
4134 {
4135 if (!target)
4136 {
4137 return;
4138 }
4139
4141 {
4142 std::list<Creature*> hatchling;
4144 if (hatchling.empty())
4145 {
4146 return;
4147 }
4148
4149 for (
Creature* creature : hatchling)
4150 {
4151 if (creature)
4152 {
4153 target = creature;
4154 return;
4155 }
4156 }
4157 }
4158 }
References SpellScript::GetCaster(), and NPC_VENOMHIDE_HATCHLING.
Referenced by Register().
The documentation for this class was generated from the following file: