summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Ghast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs/Ghast.cpp')
-rw-r--r--src/Mobs/Ghast.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/Mobs/Ghast.cpp b/src/Mobs/Ghast.cpp
index 6aac14779..4bea6dd0d 100644
--- a/src/Mobs/Ghast.cpp
+++ b/src/Mobs/Ghast.cpp
@@ -30,32 +30,3 @@ void cGhast::GetDrops(cItems & a_Drops, cEntity * a_Killer)
-
-
-void cGhast::Attack(float a_Dt)
-{
- m_AttackInterval += a_Dt * m_AttackRate;
-
- if (m_Target != NULL && m_AttackInterval > 3.0)
- {
- // Setting this higher gives us more wiggle room for attackrate
- Vector3d Speed = GetLookVector() * 20;
- Speed.y = Speed.y + 1;
- cGhastFireballEntity * GhastBall = new cGhastFireballEntity(this, GetPosX(), GetPosY() + 1, GetPosZ(), Speed);
- if (GhastBall == NULL)
- {
- return;
- }
- if (!GhastBall->Initialize(*m_World))
- {
- delete GhastBall;
- GhastBall = NULL;
- return;
- }
- m_World->BroadcastSpawnEntity(*GhastBall);
- m_AttackInterval = 0.0;
- }
-}
-
-
-