#include "Creature.h"
◆ TemporaryThreatModifierEvent()
TemporaryThreatModifierEvent::TemporaryThreatModifierEvent |
( |
Creature & |
owner, |
|
|
ObjectGuid |
threatVictimGUID, |
|
|
float |
threatValue |
|
) |
| |
|
inline |
float m_threatValue
Definition Creature.h:566
Creature & m_owner
Definition Creature.h:564
ObjectGuid m_threatVictimGUID
Definition Creature.h:565
◆ Execute()
bool TemporaryThreatModifierEvent::Execute |
( |
uint64 |
e_time, |
|
|
uint32 |
p_time |
|
) |
| |
|
overridevirtual |
Reimplemented from BasicEvent.
259{
261 {
263 {
266 }
267 }
268
269 return true;
270}
void ModifyThreatByPercent(Unit *victim, int32 percent)
Definition ThreatMgr.cpp:508
void AddThreat(Unit *victim, float threat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=nullptr)
Definition ThreatMgr.cpp:436
bool IsInCombatWith(Unit const *who) const
Definition Unit.cpp:21088
ThreatMgr & GetThreatMgr()
Definition Unit.h:912
Unit * GetUnit(WorldObject const &, ObjectGuid const guid)
Definition ObjectAccessor.cpp:199
References ThreatMgr::AddThreat(), Unit::GetThreatMgr(), ObjectAccessor::GetUnit(), Unit::IsInCombatWith(), m_owner, m_threatValue, m_threatVictimGUID, and ThreatMgr::ModifyThreatByPercent().
◆ m_owner
Creature& TemporaryThreatModifierEvent::m_owner |
|
private |
◆ m_threatValue
float TemporaryThreatModifierEvent::m_threatValue |
|
private |
◆ m_threatVictimGUID
ObjectGuid TemporaryThreatModifierEvent::m_threatVictimGUID |
|
private |
The documentation for this class was generated from the following files:
- azerothcore-wotlk/src/server/game/Entities/Creature/Creature.h
- azerothcore-wotlk/src/server/game/Entities/Creature/Creature.cpp