mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
L_ACT_CANDLE also blows a candle out on the "waterspray" skill event; the port only did it on a hit. The 169 candles in Forbidden Valley now go out (and count for missions 850, 1431, 1529, 1566 and 1603) when sprayed. Check: spray a candle with the water gun: it goes out, smokes, relights after 5 seconds, and the candle missions count it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
420 B
C++
16 lines
420 B
C++
#pragma once
|
|
#include "CppScripts.h"
|
|
|
|
class FvCandle : public CppScripts::Script
|
|
{
|
|
public:
|
|
void OnStartup(Entity* self);
|
|
void OnHit(Entity* self, Entity* attacker);
|
|
void OnSkillEventFired(Entity* self, Entity* caster, const std::string& message) override;
|
|
void OnTimerDone(Entity* self, std::string timerName);
|
|
private:
|
|
void BlowOutCandle(Entity* self, Entity* blower);
|
|
|
|
static std::vector<int32_t> m_Missions;
|
|
};
|