mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 14:16:31 +00:00
fix(Scripts/Karazhan): Several Aran fixes (#17394)
- Fix drinking being interrupted by dots - Fix first super timer - Fix missing Arcane Explosion emote - Fix supers being locked by spell interrupt - Correct drinking to 10% mana down from 20%
This commit is contained in:
@@ -2748,6 +2748,14 @@ bool Creature::IsSpellProhibited(SpellSchoolMask idSchoolMask) const
|
||||
return false;
|
||||
}
|
||||
|
||||
void Creature::ClearProhibitedSpellTimers()
|
||||
{
|
||||
for (uint8 i = SPELL_SCHOOL_NORMAL; i < MAX_SPELL_SCHOOL; ++i)
|
||||
{
|
||||
m_ProhibitSchoolTime[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void Creature::_AddCreatureSpellCooldown(uint32 spell_id, uint16 categoryId, uint32 end_time)
|
||||
{
|
||||
CreatureSpellCooldown spellCooldown;
|
||||
|
||||
@@ -165,6 +165,7 @@ public:
|
||||
[[nodiscard]] uint32 GetSpellCooldown(uint32 spell_id) const;
|
||||
void ProhibitSpellSchool(SpellSchoolMask idSchoolMask, uint32 unTimeMs) override;
|
||||
[[nodiscard]] bool IsSpellProhibited(SpellSchoolMask idSchoolMask) const;
|
||||
void ClearProhibitedSpellTimers();
|
||||
|
||||
[[nodiscard]] bool HasSpell(uint32 spellID) const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user