2021-12-05 17:54:36 +00:00
|
|
|
#include "NjGarmadonCelebration.h"
|
|
|
|
#include "Character.h"
|
|
|
|
#include "GameMessages.h"
|
2023-05-02 22:39:21 +00:00
|
|
|
#include "ePlayerFlag.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
void NjGarmadonCelebration::OnCollisionPhantom(Entity* self, Entity* target) {
|
|
|
|
auto* character = target->GetCharacter();
|
|
|
|
|
|
|
|
if (character == nullptr) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-05-02 22:39:21 +00:00
|
|
|
if (!character->GetPlayerFlag(ePlayerFlag::NJ_GARMADON_CINEMATIC_SEEN)) {
|
|
|
|
character->SetPlayerFlag(ePlayerFlag::NJ_GARMADON_CINEMATIC_SEEN, true);
|
2021-12-05 17:54:36 +00:00
|
|
|
|
|
|
|
GameMessages::SendStartCelebrationEffect(target, target->GetSystemAddress(), GarmadonCelebrationID);
|
|
|
|
}
|
|
|
|
}
|