mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 02:08:20 +00:00
6aa90ad5b2
* Breakout rest of the enums from dcommonvars so we don't have to deal with merge conflicts ePlayerFlags is not a scoped enum, yet, due to it's complexity * address feedback * make player flag types consistent * fix typo
19 lines
535 B
C++
19 lines
535 B
C++
#include "NjGarmadonCelebration.h"
|
|
#include "Character.h"
|
|
#include "GameMessages.h"
|
|
#include "ePlayerFlag.h"
|
|
|
|
void NjGarmadonCelebration::OnCollisionPhantom(Entity* self, Entity* target) {
|
|
auto* character = target->GetCharacter();
|
|
|
|
if (character == nullptr) {
|
|
return;
|
|
}
|
|
|
|
if (!character->GetPlayerFlag(ePlayerFlag::NJ_GARMADON_CINEMATIC_SEEN)) {
|
|
character->SetPlayerFlag(ePlayerFlag::NJ_GARMADON_CINEMATIC_SEEN, true);
|
|
|
|
GameMessages::SendStartCelebrationEffect(target, target->GetSystemAddress(), GarmadonCelebrationID);
|
|
}
|
|
}
|