Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CanBeReflected()

bool Terraria.Projectile.CanBeReflected ( )
inline

Definition at line 18026 of file Projectile.cs.

18027 {
18028 if (active && friendly && !hostile && damage > 0)
18029 {
18030 if (type == 728 || type == 955)
18031 {
18032 return true;
18033 }
18034 if (aiStyle == 1 || aiStyle == 2 || aiStyle == 8 || aiStyle == 21 || aiStyle == 24 || aiStyle == 28 || aiStyle == 29 || aiStyle == 131)
18035 {
18036 return true;
18037 }
18038 }
18039 return false;
18040 }

References Terraria.Entity.active, Terraria.Projectile.aiStyle, Terraria.Projectile.damage, Terraria.Projectile.friendly, Terraria.Projectile.hostile, and Terraria.Projectile.type.

Referenced by Terraria.Projectile.Damage().