Add Sonic Slash graphics. Fixed Issue #8 such that larger enemies are no longer affected by Battlecry.

This commit is contained in:
2023-06-20 16:50:56 -07:00
parent 77bd085908
commit ca151cedd9
10 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ void Player::Update(float fElapsedTime){
AddBuff(BuffType::ATTACK_UP,10,0.1);
AddBuff(BuffType::DAMAGE_REDUCTION,10,0.1);
for(Monster&m:MONSTER_LIST){
if(geom2d::overlaps(geom2d::circle<float>(pos,12*3.5),geom2d::circle<float>(m.GetPos(),m.GetSizeMult()*12))){
if(m.GetSizeMult()<=1&&geom2d::overlaps(geom2d::circle<float>(pos,12*3.5),geom2d::circle<float>(m.GetPos(),m.GetSizeMult()*12))){
m.AddBuff(BuffType::SLOWDOWN,5,0.3);
}
}