[Cleanup] Remove unnecessary setting of spell_type_index in Bot::GetChanceToCastBySpellType() (#3243)

# Notes
- The default is already `SPELL_TYPE_COUNT`, no need to set it again.
This commit is contained in:
Alex King 2023-04-03 17:04:51 -04:00 committed by GitHub
parent 90984c3215
commit 470392021b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2993,9 +2993,9 @@ uint8 Bot::GetChanceToCastBySpellType(uint32 spellType)
spell_type_index = spellTypeIndexPreCombatBuffSong;
break;
default:
spell_type_index = SPELL_TYPE_COUNT;
break;
}
if (spell_type_index >= SPELL_TYPE_COUNT)
return 0;