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) {
|
void PerformSuck(float deltaTime) {
|
||||||
if(currentTarget.bloodTokens <= 0){
|
if(currentTarget.bloodTokens <= 0 || ! vampireEntity.IsAlive()){
|
||||||
SetIsSucking(false);
|
SetIsSucking(false);
|
||||||
SetTarget(null);
|
SetTarget(null);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user