888 {
891 {
893 if (!cr)
894 {
899 return;
900 }
901
904 else
905 {
907
908
911 }
912
913
914 if ((time(
nullptr) -
GetApplyTime()) > 60 && target->IsPlayer())
916 }
917 }
constexpr auto IN_MILLISECONDS
Definition: Common.h:53
constexpr auto MINUTE
Definition: Common.h:47
@ SPELL_RIBBON_POLE_XP
Definition: midsummer.cpp:620
@ NPC_RIBBON_POLE_DEBUG_TARGET
Definition: midsummer.cpp:622
@ ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET
Definition: DBCEnums.h:142
Seconds GetGameTime()
Definition: GameTime.cpp:38
Definition: Creature.h:46
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4758
Definition: SpellAuras.h:87
void PreventDefaultAction()
Definition: SpellScript.cpp:985
time_t GetApplyTime() const
Definition: SpellScript.cpp:1070
void SetDuration(int32 duration, bool withMods=false)
Definition: SpellScript.cpp:1060