mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-04 22:07:52 +00:00
fix(Core/GameObject): allow ritual helpers on cooldown (#26144)
This commit is contained in:
@@ -1846,14 +1846,19 @@ void GameObject::Use(Unit* user)
|
||||
if (GetUniqueUseCount() == info->summoningRitual.reqParticipants)
|
||||
return;
|
||||
|
||||
SpellCastResult castResult;
|
||||
if (info->summoningRitual.animSpell)
|
||||
player->CastSpell(player, info->summoningRitual.animSpell, true);
|
||||
castResult = player->CastSpell(player, info->summoningRitual.animSpell, true);
|
||||
else
|
||||
player->CastSpell(player, GetSpellId(),
|
||||
castResult = player->CastSpell(player, GetSpellId(),
|
||||
TriggerCastFlags(TRIGGERED_IGNORE_EFFECTS
|
||||
| TRIGGERED_IGNORE_SPELL_AND_CATEGORY_CD
|
||||
| TRIGGERED_IGNORE_POWER_AND_REAGENT_COST
|
||||
| TRIGGERED_CAST_DIRECTLY));
|
||||
|
||||
if (castResult != SPELL_CAST_OK)
|
||||
return;
|
||||
|
||||
AddUniqueUse(player);
|
||||
|
||||
// full amount unique participants including original summoner
|
||||
|
||||
Reference in New Issue
Block a user