Fixed Kindle Staff doing damage and immediately disappearing
This commit is contained in:
1 parent
c71b465ff6
commit
1beaffae89
1 file changed
+3
-3
@@ -54,10 +54,8 @@ namespace CalamityMod.Projectiles.Summon
|
||||
public override void AI()
|
||||
{
|
||||
if (projectile.localAI[0] == 0f)
|
||||
{
|
||||
PerformInitialization();
|
||||
projectile.localAI[0] = 1f;
|
||||
}
|
||||
projectile.localAI[0]++;
|
||||
|
||||
// Perform minion checks.
|
||||
PerformMinionChecks();
|
||||
@@ -220,6 +218,8 @@ namespace CalamityMod.Projectiles.Summon
|
||||
damage = (int)(damage * AngryChickenStaff.ReboundRamDamageFactor);
|
||||
}
|
||||
|
||||
public override bool CanDamage() => projectile.localAI[0] > 1f;
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
SpriteEffects spriteEffects = projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None;
|
||||
|
||||
Reference in new issue
Block a user