Sprite_Actor.prototype.updateFrame = function() {
var monster = this._mainSprite.bitmap._url.match(/Behemoth|Fairy/) !== null; // add monster reference here
Sprite_Battler.prototype.updateFrame.call(this);
var bitmap = this._mainSprite.bitmap;
if (bitmap) {
var motionIndex = this._motion ? this._motion.index : 0;
var pattern = this._pattern < 3 ? this._pattern : 1;
var cw = monster ? bitmap.width : bitmap.width / 9;
var ch = monster ? bitmap.height : bitmap.height / 6;
var cx = monster ? 0 : Math.floor(motionIndex / 6) * 3 + pattern;
var cy = monster ? 0 : motionIndex % 6;
this._mainSprite.setFrame(cx * cw, cy * ch, cw, ch);
}
};