mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 09:39:11 +00:00
feat(Core/Unit): Enable/Disable Daze config (#19454)
* daze * bruh * bruhx2
This commit is contained in:
@@ -1915,8 +1915,10 @@ void Unit::DealMeleeDamage(CalcDamageInfo* damageInfo, bool durabilityLoss)
|
||||
if (Probability > 40.0f)
|
||||
Probability = 40.0f;
|
||||
|
||||
if (roll_chance_f(std::max(0.0f, Probability)))
|
||||
CastSpell(victim, 1604, true);
|
||||
// Daze application
|
||||
if (sWorld->getBoolConfig(CONFIG_ENABLE_DAZE))
|
||||
if (roll_chance_f(std::max(0.0f, Probability)))
|
||||
CastSpell(victim, 1604, true);
|
||||
}
|
||||
|
||||
if (GetTypeId() == TYPEID_PLAYER)
|
||||
|
||||
Reference in New Issue
Block a user