private void OnHasValueChaned(int c) { #region Buff string code = string.Empty; bool value = false; bool hasBuff = true; if (c == Entity.HARMFUL_POISON) { code = "Poison"; value = enemy.Harmful_Poison; } else if (c == Entity.HARMFUL_ICE) { code = "Ice"; value = enemy.Harmful_Ice; } else if (c == Entity.HARMFUL_FIRE) { code = "Fire"; value = enemy.Harmful_Fire; } else if (c == Entity.HARMFUL_ELECTIC) { code = "Electric"; value = enemy.Harmful_Electric; } else { hasBuff = false; } if (hasBuff) { Buff1Datas b = DataMap.GetBuff(code); if (b != null) { if (value) { AddBuff(b); } else { RemoveBuff(b); } } } #endregion if (c == Entity.HP || c == Entity.MAPHP) { HPChanged(); } }