◆ PrepareSpellScript()
4114 {
4116 {
4117 std::list<Creature*> hatchling;
4119 if (!hatchling.empty())
4120 {
4122 }
4123 }
4124
4126 }
@ 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:4106
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 |
4129 {
4130 if (!target)
4131 {
4132 return;
4133 }
4134
4136 {
4137 std::list<Creature*> hatchling;
4139 if (hatchling.empty())
4140 {
4141 return;
4142 }
4143
4144 for (
Creature* creature : hatchling)
4145 {
4146 if (creature)
4147 {
4148 target = creature;
4149 return;
4150 }
4151 }
4152 }
4153 }
References SpellScript::GetCaster(), and NPC_VENOMHIDE_HATCHLING.
Referenced by Register().
The documentation for this class was generated from the following file: