diff --git a/dScripts/02_server/Map/FV/FvCandle.cpp b/dScripts/02_server/Map/FV/FvCandle.cpp index 0c4344d03..805d1334c 100644 --- a/dScripts/02_server/Map/FV/FvCandle.cpp +++ b/dScripts/02_server/Map/FV/FvCandle.cpp @@ -19,6 +19,11 @@ void FvCandle::OnHit(Entity* self, Entity* attacker) { BlowOutCandle(self, attacker); } +// The water gun blows candles out too +void FvCandle::OnSkillEventFired(Entity* self, Entity* caster, const std::string& message) { + if (message == "waterspray" && caster) BlowOutCandle(self, caster); +} + void FvCandle::BlowOutCandle(Entity* self, Entity* blower) { if (self->GetBoolean(u"AmHit")) return; diff --git a/dScripts/02_server/Map/FV/FvCandle.h b/dScripts/02_server/Map/FV/FvCandle.h index e0cd4e040..97234f83a 100644 --- a/dScripts/02_server/Map/FV/FvCandle.h +++ b/dScripts/02_server/Map/FV/FvCandle.h @@ -6,6 +6,7 @@ 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);