},
tick : function()
{
- MainCharacterClass.base.prototype.tick.apply(this);
- if((!mainManager.runningStageName || this.ownerStage.manager.userID == this.ownerUID) && this.origin.y > 1000){
- this.kill();
- }
- },
- damage: function(p){
if(this.isDamageDefenseMode)
{
if((+new Date()) > this.damageDefenseModeTimeStamp + this.damageDefenseModeLong)
{
this.isDamageDefenseMode = false;
}
- }else
+ }
+ MainCharacterClass.base.prototype.tick.apply(this);
+ if((!mainManager.runningStageName || this.ownerStage.manager.userID == this.ownerUID) && this.origin.y > 1000){
+ this.kill();
+ }
+ },
+ damage: function(p){
+ if(!this.isDamageDefenseMode)
{
if(this.HP <= p){
},
draw: function(x, y){
- if(this.isDamageDefenseMode && (+new Date()) % 200 < 100) return;
-
- MainCharacterClass.base.prototype.draw.apply(this, [x, y]);
+ if(!this.isDamageDefenseMode || (+new Date()) % 200 < 100)
+ {
+ //自分を描画
+ MainCharacterClass.base.prototype.draw.apply(this, [x, y]);
+ }
if(this != this.ownerStage.userControlledCharacter)
{