Improved building attack functionality.

Signed-off-by: Rebecca <echoone10@yahoo.com>