Inactive/Active ring status based on being in/out of combat.
This commit is contained in:
+2
-1
@@ -71,7 +71,7 @@ vf2d&Monster::GetPos(){
|
||||
}
|
||||
int Monster::GetHealth(){
|
||||
return hp;
|
||||
}
|
||||
}
|
||||
int Monster::GetAttack(){
|
||||
float mod_atk=atk;
|
||||
for(Buff&b:GetBuffs(ATTACK_UP)){
|
||||
@@ -277,6 +277,7 @@ bool Monster::Hurt(int damage,bool onUpperLevel,float z){
|
||||
if(game->InBossEncounter()){
|
||||
game->StartBossEncounter();
|
||||
}
|
||||
game->GetPlayer()->ResetLastCombatTime();
|
||||
float mod_dmg=damage;
|
||||
for(Buff&b:GetBuffs(BuffType::DAMAGE_REDUCTION)){
|
||||
mod_dmg-=damage*b.intensity;
|
||||
|
||||
Reference in New Issue
Block a user