Core/Game: Include cleanup part 5

* ObjectMgr.h
* Player.h
* Unit.h
* G3D should no longer propagate everywhere from Spline/MotionMaster
This commit is contained in:
Shauren
2017-06-04 01:00:45 +02:00
parent ec72a59b08
commit b453e12423
442 changed files with 3521 additions and 2850 deletions
+4 -1
View File
@@ -17,6 +17,8 @@
*/
#include "Unit.h"
#include "DB2Stores.h"
#include "Item.h"
#include "Player.h"
#include "Pet.h"
#include "Creature.h"
@@ -25,6 +27,7 @@
#include "SpellAuras.h"
#include "SpellAuraEffects.h"
#include "World.h"
#include <G3D/g3dmath.h>
#include <numeric>
inline bool _ModifyUInt32(bool apply, uint32& baseValue, int32& amount)
@@ -553,7 +556,7 @@ void Player::UpdateMastery()
if (G3D::fuzzyEq(mult, 0.0f))
continue;
aura->GetEffect(effect->EffectIndex)->ChangeAmount(int32(value * effect->BonusCoefficient));
aura->GetEffect(effect->EffectIndex)->ChangeAmount(int32(value * mult));
}
}
}