Jump to content
TrinityCore

Leaderboard

Popular Content

Showing content with the highest reputation on 10/18/17 in all areas

  1. Its defined as constant in c++ code: `BATTLEGROUND_ARENA_POINT_DISTRIBUTION_DAY`
    1 point
  2. I know there is currently no easy way to obtain an official 7.2.5 client but do not download clients from untrusted sources. I'm afraid this has nothing related to TrinityCore.
    1 point
  3. Adding this to Unit.h/Unit.cpp will do the Job... void CastWithDelay(uint32 delay, Unit* victim, uint32 spellId, bool triggered, Item* castItem = NULL, AuraEffect const* triggeredByAura = NULL, ObjectGuid originalCaster = ObjectGuid::Empty); void Unit::CastWithDelay(uint32 delay, Unit* victim, uint32 spellId, bool triggered, Item* castItem, AuraEffect const* triggeredByAura, ObjectGuid originalCaster) { class DelayCastEvent : public BasicEvent { public: DelayCastEvent(Unit *caster, Unit* victim, uint32 spellId, bool triggered, Item* castItem, AuraEffect const* triggeredByAura, ObjectGuid originalCaster) : BasicEvent(), _caster(caster), _victim(victim), _spellId(spellId), _triggered(triggered), _castItem(castItem), _triggeredByAura(triggeredByAura), _originalCaster(originalCaster) { ; } bool Execute(uint64, uint32) { _caster->CastSpell(_victim, _spellId, _triggered ? TRIGGERED_FULL_MASK : TRIGGERED_NONE, _castItem, _triggeredByAura, _originalCaster); return true; } private: Unit *_caster; Unit *_victim; uint32 _spellId; bool _triggered; Item *_castItem; AuraEffect const* _triggeredByAura; ObjectGuid _originalCaster; }; m_Events.AddEvent(new DelayCastEvent(this, victim, spellId, triggered, castItem, triggeredByAura, originalCaster), m_Events.CalculateTime(delay)); }
    1 point
×
×
  • Create New...