Core/Vendors: Add currencies to vendors
npc_vendor table gets a new field, type (1 is item, 2 is currency) for type 1 fields still mean the same, for type 2 maxcount is buycount (without any "precision") changed structure of SMSG_UPDATE_CURRENCY(_WEEK_LIMIT) but not enabled, wrong values are being wrongly calculated
This commit is contained in:
1 parent
e761458b24
commit
c0adf370e5
16 files changed
+346
-186
No files matched your search
@@ -5628,7 +5628,7 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
|
||||
AuraEffect* counter = triggeredByAura->GetBase()->GetEffect(EFFECT_1);
|
||||
if (!counter)
|
||||
return true;
|
||||
|
||||
|
||||
// Count spell criticals in a row in second aura
|
||||
if (procEx & PROC_EX_CRITICAL_HIT)
|
||||
{
|
||||
@@ -6935,7 +6935,7 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
|
||||
// custom cooldown processing case
|
||||
if (GetTypeId() == TYPEID_PLAYER && ToPlayer()->HasSpellCooldown(spell))
|
||||
ToPlayer()->RemoveSpellCooldown(spell);
|
||||
|
||||
|
||||
CastSpell(target, spell, true, castItem, triggeredByAura);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user