mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-24 23:39:34 -04:00
Magic numbers cleanup:
- Replace many magic numbers with constants - Use enum for vehicle flags/seat flags - Correct structure for ItemRandomSuffixEntry --HG-- branch : trunk
This commit is contained in:
@@ -1565,7 +1565,7 @@ void GameObject::CastSpell(Unit* target, uint32 spellId)
|
||||
return;
|
||||
|
||||
bool self = false;
|
||||
for (uint8 i = 0; i < 3; ++i)
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
{
|
||||
if (spellInfo->EffectImplicitTargetA[i] == TARGET_UNIT_CASTER)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user