well i have some notice on your code which is
PHP Code:
if (attacker.OnSuperman())
{
if (attacked.Name.Contains("TeratoDragon"))
Damage = (int)(Damage * 0.9);
else
Damage *= 10;
if (attacked.EntityFlag == EntityFlag.Player)
Damage = (int)(Damage * 0.1);
}
well This Code is weakly coded for SOme reasons 1st :-
1 - You have to make another 4 cases cuz u r making checkers using name so u would need to add cases of SnowBanshee , and other super bosses so thats
inefficient it should Be bool instance Named Bosses for example and then its set to True once the monster is Boss and luckly u seem to be using Impulse Source in this Case its already been Added..
2 - Superman damage x 2 in case you attacks player not 0.1 as i guess
3 - y did u make Damage = (uint)Damage * 0.9 while it should had written this way Damage *= 10;
Anyways Heres A Code For all cases
PHP Code:
if (attacker.EntityFlag == EntityFlag.Player && attacker.OnSuperman())
{
switch (attacked.EntityFlag)
{
case EntityFlag.Player:
{
Damage *= 2;
break;
}
case EntityFlag.Monster:
{
if (attacked.MonsterInfo.Boss == true)
{
Damage *= 1;
}
else
{
Damage *= 10;
}
break;
}
}
}