|
@@ -200,7 +200,11 @@ export class WeaponCellListView extends BaseView{
|
|
|
if(target==null){
|
|
|
//删除
|
|
|
if(this.HitNode(this.mediator.deleteWeaponNode,this.tempPos)){
|
|
|
- GameModel.single.RemoveWeapon(this.currentSelect.cellId);
|
|
|
+ if(this.currentSelect==GameModel.single.currentWeaponCell){
|
|
|
+ NoticeManager.ShowPrompt("不能销毁当前使用的武器!");
|
|
|
+ }else{
|
|
|
+ GameModel.single.RemoveWeapon(this.currentSelect.cellId);
|
|
|
+ }
|
|
|
}else if(this.HitNode(this.mediator.equipWeaponNode,this.tempPos))
|
|
|
{//装配武器
|
|
|
GameModel.single.EquipWeapon(this.currentSelect);
|