in the deathball everybody attacks themselves not to the only the person who holds the ball.if a restriction comes like players only attack the person who hold the ball this can be very good otherwise the game turns to pvp challenge
just make this change in DeathBallGauntlet.cs
QUOTE |
public override bool AreChallengers(Mobile from, Mobile target) { /* // allow pets of challengers if (from is BaseCreature && (((BaseCreature)from).Controled || ((BaseCreature)from).Summoned)) from = ((BaseCreature)from).ControlMaster; if (target is BaseCreature && (((BaseCreature)target).Controled || ((BaseCreature)target).Summoned)) target = ((BaseCreature)target).ControlMaster; */
// everyone participant is a challenger to everyone other participant, so just being a participant // makes you a challenger return(AreInGame(from) && BallOwner == target); }
public Mobile BallOwner { get { Mobile owner = null; if (m_DeathBall != null && m_DeathBall.RootParent is Mobile) { owner = m_DeathBall.RootParent as Mobile; }
return owner; } }
|
ok thanks arte but there is not a code like this in my arechallengers
// allow pets of challengers
if (from is BaseCreature && (((BaseCreature)from).Controled || ((BaseCreature)from).Summoned))
from = ((BaseCreature)from).ControlMaster;
if (target is BaseCreature && (((BaseCreature)target).Controled || ((BaseCreature)target).Summoned))
target = ((BaseCreature)target).ControlMaster;
*/
i wonder whats this?
that is just some optional code. It is commented out, so you can ignore it.
whats it for?i can enable it if i like.
sure if you like. It just allows pets into the games.