604{
606
608 return;
609
610 std::shared_ptr<Horizon::Zone::Unit> src_unit =
_unit.lock();
611
613 if (iter->source() == nullptr)
614 continue;
615
616 std::shared_ptr<Player> tpl = iter->source()->template downcast<Player>();
617
618 if (tpl->get_session() == nullptr || tpl->get_session()->clif() == nullptr)
619 continue;
620
622 {
624 {
626 }
627 break;
629 {
630 tpl->get_session()->clif()->notify_hostile_skill_use(
641 }
642 break;
644 {
646 }
647 break;
648 default:
649 HLog(warning) <<
"GridUnitSkillUseNotifier::notify: Unknown notification type: " <<
_notification_type <<
"." << std::endl;
650 break;
651 }
652 }
653}
@ ZC_USESKILL2_SUCCESS
Definition: ClientDefinitions.hpp:897
@ GRID_UNIT_SKILL_USE_NOTIFY_CASTTIME
Definition: GridDefinitions.hpp:89
@ GRID_UNIT_SKILL_USE_NOTIFY_SUCCESS_DAMAGE
Definition: GridDefinitions.hpp:90
@ GRID_UNIT_SKILL_USE_NOTIFY_SUCCESS_NO_DAMAGE
Definition: GridDefinitions.hpp:91
#define HLog(type)
Definition: Logger.hpp:122
Forward declaration of GridRefManager, the class that manages GridReference.
Definition: GridRefManager.hpp:41
iterator begin()
Definition: GridRefManager.hpp:54
uint32_t get_size() const
returns the number of Elements in the list (not including the head and tail Elements or the first and...
Definition: Head.hpp:69
Definition: GameLogicProcess.hpp:43
int target_guid
Definition: GridNotifiers.hpp:365
int damage_value
Definition: GridNotifiers.hpp:365
zc_notify_act_3_action_types action_type
Definition: GridNotifiers.hpp:367
int source_guid
Definition: GridNotifiers.hpp:365
int target_x
Definition: GridNotifiers.hpp:369
int element
Definition: GridNotifiers.hpp:370
int cast_time
Definition: GridNotifiers.hpp:370
int attack_motion
Definition: GridNotifiers.hpp:365
int display_value
Definition: GridNotifiers.hpp:365
int delay_motion
Definition: GridNotifiers.hpp:366
int start_time
Definition: GridNotifiers.hpp:365
int number_of_hits
Definition: GridNotifiers.hpp:366
int skill_id
Definition: GridNotifiers.hpp:365
int target_y
Definition: GridNotifiers.hpp:369