◆ achievement_wg_didnt_stand_a_chance()
achievement_wg_didnt_stand_a_chance::achievement_wg_didnt_stand_a_chance |
( |
| ) |
|
|
inline |
Definition AchievementCriteriaScript.h:24
◆ OnCheck()
bool achievement_wg_didnt_stand_a_chance::OnCheck |
( |
Player * |
source, |
|
|
Unit * |
target, |
|
|
uint32 |
|
|
) |
| |
|
inlineoverridevirtual |
Reimplemented from AchievementCriteriaScript.
1113 {
1114 if (!target)
1115 return false;
1116
1118 {
1119 if (!victim->IsMounted())
1120 return false;
1121
1123 if (vehicle->GetVehicleInfo()->m_ID == 244)
1124 return true;
1125 }
1126
1127 return false;
1128 }
Player * ToPlayer()
Definition Object.h:201
Vehicle * GetVehicle() const
Definition Unit.h:1839
References Unit::GetVehicle(), and Object::ToPlayer().
The documentation for this class was generated from the following file: