function MasicPointAddNormal(Rate){
let MagicPoint = GetCommonData("MAGICPOINT");
let AddPoint = GetCommonData("MAGICPOINT_ADD");
let stage = GetCommonData("STAGE");

if(OnBomb == false){
MagicPoint += AddPoint * (Rate + (stage - 1) * 0.5);
SetCommonData("MAGICPOINT",MagicPoint);
}
}

function MasicPointAddSpellCard{
let MagicPoint = GetCommonData("MAGICPOINT");
let AddPoint = GetCommonData("MAGICPOINT_ADD");
let stage = GetCommonData("STAGE");

if(GetBombCountInThisSpell == 0&&GetMissCountInThisSpell == 0){
MagicPoint += AddPoint * (15 + stage * 5);
SetCommonData("MAGICPOINT",MagicPoint);
}
}
function MagicPointAddNormal(Rate){
let MagicPoint = GetCommonData("MAGICPOINT");
let AddPoint = GetCommonData("MAGICPOINT_ADD");

if(OnBomb == false){
MagicPoint += AddPoint * Rate;
SetCommonData("MAGICPOINT",MagicPoint);
}
}

function MagicPointAddSpellCard{
let MagicPoint = GetCommonData("MAGICPOINT");
let AddPoint = GetCommonData("MAGICPOINT_ADD");

if(GetBombCountInThisSpell == 0&&GetMissCountInThisSpell == 0){
MagicPoint += AddPoint * 35;
SetCommonData("MAGICPOINT",MagicPoint);
}
}

function ChackBonus{
scorebonus = GetCommonData("SCOREBONUS");
spellbonus = GetCommonData("SPELLBONUS");
}