Fix keep sucking when dead
This commit is contained in:
parent
4a11d0bae9
commit
41dc2c2fe0
@ -91,7 +91,7 @@ public class BloodSucker : MonoBehaviour {
|
||||
}
|
||||
|
||||
void PerformSuck(float deltaTime) {
|
||||
if(currentTarget.bloodTokens <= 0){
|
||||
if(currentTarget.bloodTokens <= 0 || ! vampireEntity.IsAlive()){
|
||||
SetIsSucking(false);
|
||||
SetTarget(null);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user