mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Cleanup] Cleaning up Raid.cpp (#3125)
* [Cleanup] Cleanup Raid.cpp * cleanup * fix is_bot instances * bracket cleanup * bracket cleanup * rename variables in struct * fix for merge
This commit is contained in:
+6
-3
@@ -2068,16 +2068,19 @@ bool Mob::Flurry(ExtraAttackOptions *opts)
|
||||
|
||||
bool Mob::AddRampage(Mob *mob)
|
||||
{
|
||||
if (!mob)
|
||||
if (!mob) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!GetSpecialAbility(SPECATK_RAMPAGE))
|
||||
if (!GetSpecialAbility(SPECATK_RAMPAGE)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < RampageArray.size(); i++) {
|
||||
// if Entity ID is already on the list don't add it again
|
||||
if (mob->GetID() == RampageArray[i])
|
||||
if (mob->GetID() == RampageArray[i]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
RampageArray.push_back(mob->GetID());
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user